|
1 | 1 | # Cron |
2 | 2 |
|
3 | | -Void Linux comes without a default cron daemon, you can choose one of multiple |
4 | | -cron implementations, by installing the package and enabling the system service. |
| 3 | +[cron](https://en.wikipedia.org/wiki/Cron) is a daemon for running programs at |
| 4 | +regular intervals. The programs and intervals are specified in a `crontab` file, |
| 5 | +which can be edited with [crontab(1)](https://man.voidlinux.org/crontab.1). |
| 6 | +Running `crontab -e` as the superuser will edit the system crontab; otherwise, |
| 7 | +it will edit the crontab for the current user. |
5 | 8 |
|
6 | | -Available choices include [cronie](https://github.com/cronie-crond/cronie/), |
| 9 | +By default, a cron daemon is not installed. However, multiple cron |
| 10 | +implementations are available, including |
| 11 | +[cronie](https://github.com/cronie-crond/cronie/), |
7 | 12 | [dcron](http://www.jimpryor.net/linux/dcron.html), |
8 | 13 | [fcron](http://fcron.free.fr/) and more. |
9 | 14 |
|
10 | | -As alternative to the standard cron implementations you can use something like |
11 | | -[snooze](https://github.com/leahneukirchen/snooze) or |
12 | | -[runwhen](https://code.dogmap.org/runwhen/) which go hand in hand with service |
13 | | -supervision. |
| 15 | +Once you have chosen and installed an implementation, |
| 16 | +[enable](./services/index.md#enabling-services) the `crond` service, which is a |
| 17 | +symlink to the actual service (e.g. `dcron`). If you install several |
| 18 | +implementations, you can choose which one to use via |
| 19 | +[xbps-alternatives(1)](https://man.voidlinux.org/xbps-alternatives.1); this will |
| 20 | +alter the `crond` symlink appropriately. Implementation documentation will be |
| 21 | +available in [crond(8)](https://man.voidlinux.org/crond.8). |
| 22 | + |
| 23 | +As an alternative to the standard cron implementations, you can use |
| 24 | +[snooze(1)](https://man.voidlinux.org/snooze.1) together with the |
| 25 | +`snooze-hourly`, `snooze-daily`, `snooze-weekly` and `snooze-monthly` services, |
| 26 | +which are provided by the `snooze` package for this purpose. Each of these |
| 27 | +services execute scripts in the respective `/etc/cron.*` directories. |
0 commit comments