CRON Reset to default?
-
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
-
@alexcheddar In my humble opinion I dont see another way that to reinstall pfsense and prior to that make a backup of your settings.
-
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.
-
Yes that could be also a solution if someone have not change the original cron settings!
-
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.
-
Can anybody post their screenshot of default cron config here? Please. it would be very much appreciated.
-
/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 monthlyAdjust 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.pidIf 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!