Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neo-oli/crontroll
A cronjob controller written in bash.
https://github.com/neo-oli/crontroll
Last synced: about 7 hours ago
JSON representation
A cronjob controller written in bash.
- Host: GitHub
- URL: https://github.com/neo-oli/crontroll
- Owner: Neo-Oli
- License: mit
- Created: 2018-03-20T09:16:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-25T20:56:56.000Z (4 months ago)
- Last Synced: 2024-06-25T22:14:59.759Z (4 months ago)
- Language: Shell
- Size: 59.6 KB
- Stars: 13
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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` (or `$CRONDIR`, if set).## 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/`. This can be disabled if you create a file called ~/.cron/`.-nolog` for each cronjob you wish to disable logging for. You can also change the log dir by setting `$CRONLOGDIR`