tillo
Verified User
First of all, it would be nice to have the possibility to use the Cronjobs administration page to insert special entries, like @reboot (which is the only one that can't be written with normal syntax).
See http://en.wikipedia.org/wiki/Cron#Fields for more infos.
Furthermore, if I modify the crontab manually DA will overwrite it when inserting or removing any other entry from the interface. It should parse the content of the crontab file and rewrite it exactly as it was, with comments.
An easier way to avoid losing data is to insert some kind of marker at the beginning and end of DA's cron lines, with a small warning.
Like that:
(just an example)
See http://en.wikipedia.org/wiki/Cron#Fields for more infos.
Furthermore, if I modify the crontab manually DA will overwrite it when inserting or removing any other entry from the interface. It should parse the content of the crontab file and rewrite it exactly as it was, with comments.
An easier way to avoid losing data is to insert some kind of marker at the beginning and end of DA's cron lines, with a small warning.
Like that:
Code:
# m h dom mon dow command
* * * * * ./something_custom
## BEGIN DirectAdmin CRON
# don't modify lines between "DirectAdmin CRON" markers
# as they will likely be overwritten by DirectAdmin
* * * * * ./inserted_through_DA
@reboot ./persistent_backend
## END DirectAdmin CRON
Last edited: