cron: add @service which is probably clearer than @reboot in app context

This commit is contained in:
Girish Ramakrishnan
2022-05-20 10:57:44 -07:00
parent 17910584ca
commit 9fcd6f9c0a
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -304,7 +304,8 @@ function parseCrontab(crontab) {
// https://www.man7.org/linux/man-pages/man5/crontab.5.html#EXTENSIONS
const KNOWN_EXTENSIONS = {
'@reboot' : '@reboot',
'@service' : '@service', // runs once
'@reboot' : '@service',
'@yearly' : '0 0 1 1 *',
'@annually' : '0 0 1 1 *',
'@monthly' : '0 0 1 * *',