Results 1 to 6 of 6

Thread: How to set up crontabs

  1. #1

    How to save crontabs

    I've some problems using crontabs. I've my cron jobs working great doing this:

    mkdir -p /var/spool/cron/crontabs
    crond -c /var/spool/cron/crontabs (have to do this, otherwise nothing gets working, dont no why)
    crontab -e
    03 1 * * * /tmp/harddisk/ftp_pub/
    55 7 * * * /tmp/harddisk/ftp_pub/
    flashfs save
    flashfs commit

    BUT, every time i reboot the router all the cron jobs are gone! By the way, i'm using the v. CR3c [Oleg] Firmware. Am i missing anything?

    Tks in advance
    Last edited by iXuS; 19-02-2005 at 15:59.

  2. #2
    I think you have to add you admin file to .files in your home folder to save this with flash

    Check the content of your /var/spool/cron/crontabs folder. You have to add all the files like this:

    echo /var/spool/cron/crontabs/admin >> /usr/local/.files
    Last edited by hugo; 19-02-2005 at 16:10.

  3. #3
    Also don't forget flashfs enable after flashfs commit

  4. #4
    Tks a lot! My settings are now being saved, but i've another problem. It seems that crond is not restarting after reboot, my cron jobs wont work until i manualy type:

    crond -c /var/spool/cron/crontabs

    so i get on the log in wb interface:

    Feb 19 15:25:21 crond[153]: crond 2.3.2 dillon, started, log level 8

    What should i do to set the crond do start in boot sequence?

    Tks a lot in advance

  5. #5
    do you have a /tmp/local/sbin/post-boot script?

    It should have

    crond -c /var/spool/cron/crontabs
    then chmod a+x tmp/local/sbin/post-boot
    Don't forget to flashfs save commit enable after that

  6. #6
    By the time of your reply, i've been reading wiki files, and i done what you suggested. i wrote a post-boot script with /bin/busybox crond, and now everything is fine.

    So i think my doubts are done! tks a lot for help me hugo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts