[Seek Help] deepin crontab的日志在哪里
Tofloor
poster avatar
小小怪下士
deepin
2021-03-10 00:58
Author
1. 修改rsyslog文件,将/etc/rsyslog.d/50-default.conf 文件中的#cron.*前的#删掉;
2. 重启rsyslog服务service rsyslog restart
3. 重启cron服务service cron restart
看 /var/log/cron这个文件就可以,可以用tail -f /var/log/cron观察

按ubuntu的方法, /etc/rsyslog.d文件夹是空的
Reply Favorite View the author
All Replies
SamLukeYes
deepin
2021-03-10 01:28
#1

其实现在一般不用 crontab 了,用 systemd timer

即使用 crontab,也应该用 systemd 查日志了

Reply View the author
小小怪下士
deepin
2021-03-10 03:12
#2
SamLukeYes

其实现在一般不用 crontab 了,用 systemd timer

即使用 crontab,也应该用 systemd 查日志了

好的,受教了

Reply View the author