CRON parameter* == CRON="crontab-spec"
crontab-spec == minute hour day month dayOfWeek action
-- default: none
| -suspend N | -- suspend for N seconds |
| -restart | -- restart the DeleGate |
| -exit | -- finish the DeleGate |
| -expire N | -- execute expiration for $CACHEDIR by "-atime +Nd" |
| -system command | -- execute command as a shell command |
| /dir/command args | -- equiv. to "-system /dir/command args" |
| - args | -- equiv. to "/dir/delegated args" |
| -Ffunc args | -- equiv. to "/dir/delegated -Ffunc args" |
Example:
CRON="0 0 * * * -restart"
CRON="0 3 * * * -expire 3" (this is equivalent to followings)
CRON="0 3 * * * -Fexpire /path/of/cache -rm -atime +3 -sum"
CRON="0 3 * * * /path/of/delegated -Fexpire /path/of/cache -rm -atime +3 -sum"