Cron jobs at boot time - Slackware

This is a discussion on Cron jobs at boot time - Slackware ; Hello group. There's a nice little Slackware server (12.0) in our University with about 100 users, and they have stuff in their crontabs that look like this: MAILTO="" @reboot $HOME/bin/my_daemon >> $HOME/var/log/cronjobs.log 2>&1 However, @reboot doesn't seem to do anything. ...

+ Reply to Thread
Results 1 to 16 of 16

Thread: Cron jobs at boot time

  1. Cron jobs at boot time

    Hello group.

    There's a nice little Slackware server (12.0) in our University with
    about 100 users, and they have stuff in their crontabs that look like this:

    MAILTO=""
    @reboot $HOME/bin/my_daemon >> $HOME/var/log/cronjobs.log 2>&1

    However, @reboot doesn't seem to do anything. Their daemons won't run.
    Does Slackware not support the @reboot, @yearly, @annually, @monthly,
    @weekly, @daily, @midnight and @hourly parameters? OK, of those, only
    @reboot is really needed since the rest are just shortcuts for full time
    definitions.

    I really need @reboot :P

  2. Re: Cron jobs at boot time

    Nikos Chantziaras wrote:
    > Does Slackware not support the @reboot, @yearly, @annually, @monthly,
    > @weekly, @daily, @midnight and @hourly parameters?


    nope. slack uses dillon's cron (see man crontab, man crond) which doesn't
    support such things.

    > I really need @reboot :P


    i don't see why a server would need to reboot very often, but if you want
    @reboot, you'll need to install another cron implementation.


    --
    Joost Kremers joostkremers@yahoo.com
    Selbst in die Unterwelt dringt durch Spalten Licht
    EN:SiS(9)

  3. Re: Cron jobs at boot time

    Joost Kremers wrote:
    > i don't see why a server would need to reboot very often, but if you want
    > @reboot, you'll need to install another cron implementation.


    Or just do the job itself from rc.local instead of cron.
    The OP could even use "at + 5 minutes -f