Use /etc/cron.d/ispconfig rather than /var/spool/cron/crontabs/root ?

Discussion in 'Developers' Forum' started by Harvie, Apr 3, 2018.

  1. Harvie

    Harvie New Member

    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?
    Cheers Tom.

    * * * * * /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
     
    till likes this.
  2. Jesse Norell

    Jesse Norell Well-Known Member

    I'd prefer that location too, and you could sure make a feature request in the bug tracker. One issue to consider is that likely not all OS versions that ispconfig supports use /etc/cron.d/, so the current behavior might need to be a fallback, but I'd say use it where it's supported.
     
  3. Harvie

    Harvie New Member

    Where do i find the bug tracker pls?
     
  4. Jesse Norell

    Jesse Norell Well-Known Member

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    We should change that indeed.
     
  6. Harvie

    Harvie New Member

Share This Page