Update cron syntax proposal: @hourly, @daily, @weekly, @reboot, etc.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-31 16:52:09 +01:00
1 parent c939aed87f
commit ff95ca92b1
1 file changed
+6 -4
+6 -4
View File
@@ -79,14 +79,16 @@ system-level timed periodic tasks:
Proposed syntax: Proposed syntax:
# Crontab # Crontab
cron @YY-mm-ddTHH:MM [LVLS] /path/to/cmd [ARGS] -- Optional descr cron @SPEC [LVLS] /path/to/cmd [ARGS] -- Optional descr
# One-shot 'at' command # One-shot 'at' command
at @YY-mm-ddTHH:MM [LVLS] /path/to/cmd [ARGS] -- Optional descr at @YY-mm-ddTHH:MM [LVLS] /path/to/cmd [ARGS] -- Optional descr
Notice the ISO date in notation. The runlevels is extra filtering Notice the ISO date in the `at` notation. The `cron @SPEC` could use
sugar. E.g., if cron service is only allowed in runlevels two or three are mo loose notation, e.g. `@hourly`, `@midnight`, `@daily`, `@weekly`,
it will not start if system currently is in runlevel four. `@reboot`, etc. The runlevels is extra filtering sugar. E.g., if cron
service is only allowed in runlevels two or three it will not start if
system currently is in runlevel four.
To run a command as another user the `.conf` file must have a that To run a command as another user the `.conf` file must have a that
owner. E.g., `/etc/finit.d/extra.conf` may be owned by operator and owner. E.g., `/etc/finit.d/extra.conf` may be owned by operator and