Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    CRON Reset to default?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alexcheddar
      last edited by

      Hi, I am looking for a package category but i can't find any so I did post my problem here.

      My problem is i did delete the cron preset values. I wanted to revert that action. so I did try to reinstall the cron but the default values were not set. I try to uninstall it. then install it again but the result were the same.

      Is there any way to reset the cron to its default value with its predefined cron schedule? Thanks

      fireodoF 1 Reply Last reply Reply Quote 0
      • fireodoF
        fireodo @alexcheddar
        last edited by

        @alexcheddar In my humble opinion I dont see another way that to reinstall pfsense and prior to that make a backup of your settings.

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.8.0 CE
        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

        1 Reply Last reply Reply Quote 0
        • bepoB
          bepo
          last edited by

          Maybe someone can provide you a screenshot from his cron or the cron config file here. I am on the road and currently have no access - sorry.

          Please use the thumbs up button if you received a helpful advice. Thank you!

          1 Reply Last reply Reply Quote 1
          • fireodoF
            fireodo
            last edited by

            Yes that could be also a solution if someone have not change the original cron settings!

            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
            pfsense 2.8.0 CE
            Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

            1 Reply Last reply Reply Quote 0
            • K
              kpa
              last edited by

              I'm quite surprised that the cron package is even capable of modifying the system's /etc/crontab. Normally the recommendation is to put the custom entries into root's (or some other local account depending on the needs) own crontab and leave /etc/crontab for the system default entries.

              1 Reply Last reply Reply Quote 0
              • A
                alexcheddar
                last edited by

                Can anybody post their screenshot of default cron config here? Please. it would be very much appreciated.

                1 Reply Last reply Reply Quote 0
                • fireodoF
                  fireodo
                  last edited by

                  /etc/crontab - root's crontab for FreeBSD

                  $FreeBSD$

                  SHELL=/bin/sh
                  PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin

                  #minute hour mday month wday who command

                  #*/5 * * * * root /usr/libexec/atrun

                  Save some entropy so that /dev/random can re-seed on boot.

                  #*/11 * * * * operator /usr/libexec/save-entropy

                  Rotate log files every hour, if necessary.

                  #0 * * * * root newsyslog

                  Perform daily/weekly/monthly maintenance.

                  #1 3 * * * root periodic daily
                  #15 4 * * 6 root periodic weekly
                  #30 5 1 * * root periodic monthly

                  Adjust the time zone if the CMOS clock keeps local time, as opposed to

                  UTC time. See adjkerntz(8) for details.

                  #1,31 0-5 * * * root adjkerntz -a

                  pfSense specific crontab entries

                  Created: July 24, 2018, 8:39 pm

                  1,31 0-5 * * * root /usr/bin/nice -n20 adjkerntz -a
                  1 3 1 * * root /usr/bin/nice -n20 /etc/rc.update_bogons.sh
                  */60 * * * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
                  */60 * * * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 webConfiguratorlockout
                  1 1 * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update
                  */60 * * * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 virusprot
                  30 12 * * * root /usr/bin/nice -n20 /etc/rc.update_urltables
                  1 0 * * * root /usr/bin/nice -n20 /etc/rc.update_pkg_metadata
                  */5 * * * * root /usr/local/bin/vnstat -u
                  1 0 * * * root /bin/pkill -HUP -F /var/run/bandwidthd.pid

                  If possible do not add items to this file manually.

                  If done so, this file must be terminated with a blank line (e.g. new line)

                  Hope it helps you!

                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                  pfsense 2.8.0 CE
                  Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.