Crontab special entries and parsing

tillo

Verified User
Joined
Oct 28, 2007
Messages
855
Location
Switzerland
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:
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
(just an example)
 
Last edited:
Well I would like to bump this one.

I second this request.
We need to be able to do this via the DA interface for several options, but it has issues, because reasons written above.
 
Back
Top