install
apt install cron
enable service
systemctl enable --now cron
service cron status
edit config file
sudo ls /var/spool/cron/crontabs/
sudo vim /var/spool/cron/crontabs/
log
-
modify rsyslog config: open
/etc/rsyslog.d/50-default.conf
remove#
beforecron.*
-
restart rsyslog service:
sudo service rsyslog restart
- restart cron service:
sudo service cron restart
tail -f /var/log/cron.log
https://serverfault.com/questions/136461/how-to-check-cron-logs-in-ubuntu
标签:log,service,sudo,crontab,cron,u20,rsyslog,restart From: https://www.cnblogs.com/Searchor/p/17394431.html