On 2024-12-07 07:47, Greg Wooledge wrote:
On Sat, Dec 07, 2024 at 07:20:12 +0800, Bitfox wrote:
How can I restart crontab daemon?
I tried "service crontab restart" and "dpkg --list |grep crontab",
they have
no help.
crontab(1) is the name of the command that you use, as a user, to
display or alter your personal crontab.
The daemon (service) that runs your crontab jobs, however, is usually
named "cron". Or possibly "crond" on some systems.
hobbit:~$ ps -ef | grep cron
root 826 1 0 Dec05 ? 00:00:00 /usr/sbin/cron -f
greg 57136 1769 0 18:44 pts/14 00:00:00 man 1 crontab
greg 57161 1765 0 18:44 pts/13 00:00:00 grep cron
Given that the daemon's name is "cron", the service name is probably
similar. Let's just take a guess that it's the same:
Thanks Greg.
Now it has been working after this command,
sudo systemctl restart cron
Regards.