Use /etc/cron.d/ispconfig rather than /var/spool/cron/crontabs/root ?
When installing ispconfig, it adds following lines into /var/spool/cron/crontabs/root
. I guess it's not really nice place for scripts to automaticaly put their crons into. Stuff like this should be put in /etc/crond.d/[package_name]
, therefore /etc/cron.d/ispconfig
would make more sense for me.
What do you think?
* * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
* * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
Edited by Harvie