I use a cron job to call
offlineimap every 2 minutes:
*/2 * * * * /usr/bin/offlineimap > ~/Maildir/offlineimap.log 2>&1
I needed to kill the cron job to fix a problem. How can I then restart the cron job (without rebooting)? I found this 'solution' online:
mylogin@myhost:~$ sudo /etc/init.d/cron restart Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service cron restart Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop cron ; start cron. The restart(8) utility is also available. cron stop/waiting cron start/running, process 26958
ps -ef | grep ..., I don't see the job... What's wrong?