A cronjob controller written in bash. Treat cronjobs similar to services and enable or disable them from the command line.
$ crontroll status updatedb
enabled: updatedb; 0 3 * * * updatedb -U ~/drive
$ crontroll disable updatedb
$ crontroll status updatedb
disabled: updatedb; 0 3 * * * updatedb -U ~/drive
$ crontroll enable updatedb
$
Instead of writing directly to your crontab file, create a file per cronjob in ~/.cron
(or $CRONDIR
, if set).
~/.cron $ cat updatedb
0 3 * * * updatedb -U ~/drive
Then run crontroll reload
to enable your new cronjob.
Each cronjob will create a logfile at ~/.logs/cronjobs/
. This can be disabled if you create a file called ~/.cron/.<NAME>-nolog
for each cronjob you wish to disable logging for. You can also change the log dir by setting $CRONLOGDIR