When I schedule a job, some seem to be applied immediately, while others after a reboot. So is it recommended to restart cron
(crond
) after adding a new cron job? How to do that properly (esp. in a Debian system), and should that be done with sudo
(like sudo service cron restart
) even for that of normal users'?
I tried:
/etc/init.d/cron restart
which doesn't seem to work (neither does /etc/init.d/cron stop
or service cron stop
) and completes with return code 1.
Here's a part of the message output:
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) utility, e.g. stop cron stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.91" (uid=1000 pid=3647 comm="stop cron ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
(what does that mean?)
crontab -e
? – Timo Jan 30 '14 at 09:04crontab -e
is what I use.. – rusty Jan 30 '14 at 09:06man cron
-> Name) – Timo Jan 30 '14 at 09:08crontab -e
) as a user and (Vixie) cron picks up the change without a restart. Can you add the crontab lines that do not automatically get executabe in the question? Preferably with some script explanation if it is not a standard Linux program? – Timo Jan 30 '14 at 10:37nano
) is closed too! ..and maybe that's caused the confusion... – rusty Jan 30 '14 at 12:19