A cronjob controller written in bash.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Initial commit Mar 20, 2018
Makefile add files to git repository Mar 20, 2018
README.md Update Readme Jul 19, 2018
_crontroll Pretty list Apr 23, 2018
crontroll Remove bashisms Oct 4, 2018

README.md

crontroll

A cronjob controller written in bash. Treat cronjobs similar to services and enable or disable them from the command line.

Examples

$ 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
$

Setting up cronjobs

Instead of writing directly to your crontab file, create a file per cronjob in ~/.cron.

Example

~/.cron $ cat updatedb
0 3 * * * updatedb -U ~/drive

Then run crontroll reload to enable your new cronjob.

Logging

Each cronjob will create a logfile at ~/.logs/cronjobs/