jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

Support for crontab commands that add comment lines on top (ie: cronie) #251

Closed marchioman closed 7 years ago

marchioman commented 7 years ago

Scheduling jobs with cronie (default cron daemon on SLES et al) doesn't work as cronie's crontab(1) adds three lines of comments on top of crontab(5) to alert user not to directly edit the file. Workaround: add | grep -vE '^# (DO NOT|\(/tmp/|\(Cronie)' at row199, column 46 of file lib/minicron/cron.rb

jamesrwhite commented 7 years ago

In version 1.0 that I'm currently actively working on I'm planning to remove altering crontabs directly so I won't be resolving this issue. Thank you for reporting it though.