Quote:
Originally Posted by dubbeh
Sorry for the double post - Looking for some feedback on a change I'm thinking about doing.
How would server admins be if i changed the format to be more like the official UNIX cronjob scheduler? Looked over the Wikipedia article and thought it would be much better overall and create less confusion.
Code:
# * * * * * command to execute
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
That's how the new format would be like - And potentially add macros for stuff like @startup, @mapchange - Only downside to this, is possibly more overhead on the server.
Freel free to check out the wikipedia article here and give any potential feedback
|
Most of the confusion has been over the "stop" times. I think people take this to mean there is some sort of termination sent out to kill the process, rather than what is actually happening - the command is no longer sent. Removing the "stop" time might make it more clear that most common uses require at least 2 lines - one to change something at a certain time, and another to change it back. Most people seem to use this to change their mapcycles during peak periods, and they often think that the mapcycle will revert back somehow at the "stop" time, when in fact that is the sort of job where then stop time is not relevant, and the user would need a whole other config line to change the mapcycle back. There's also some other quirks with the current syntax. If "Start Time > Stop Time", whether "Time" is hour, minute, etc., the job will never run, and that may be >= instead of just >, I don't remember off hand and can't test it right now, but I know I've posted about it in this thread before.
On the other hand, you should probably add comments in the documentation somewhere clarifying the proposed new syntax because I can hear the questions now..."What day of week do I put if it's a monthly job?", or vice versa. There's a very large chunk of people that would post the question before they would run a simple test to find out.
__________________