Jumpstarter
Senior Member
crontab randomly lost several jobs, is this normal behavior? what may cause this?
no , I am talking in between reboots, not right after a reboot, like lets say i rebooted, verified crons were active and left it running and came back several hours later and now crons are no longer listed.crontab is not persistent across reboots so you need to have a startup script that populates it.
I'm not aware of any process that would remove crontab entries. At least not deliberately.no , I am talking in between reboots, not right after a reboot, like lets say i rebooted, verified crons were active and left it running and came back several hours later and now crons are no longer listed.
I can't think why that would be the case. Jobs that are invoked from cron do not write anything to the crontab.the only thing i can think happen is a cron job hanged and caused it .
Even if that were the case it wouldn't effect an existing crontab file. There is nothing in the basic firmware that touches the crontab files. It doesn't even exist unless you create it yourself (or through add-on software).i can't think of any, but what i can think is if cron some how crashed and restarted i don't know if that is possible.
GNU nano 4.2 /jffs/scripts/service-event
#!/bin/sh
/jffs/scripts/connmon generate "$1" "$2" & # connmon
/jffs/scripts/uiDivStats generate "$1" "$2" & # uiDivStats
/jffs/scripts/scribe kill-logger nologo "$1" "$2" & # added by scribe
/jffs/scripts/ntpmerlin generate "$1" "$2" & # ntpMerlin
Was this all cron jobs or just specific ones? Any chance your /tmp filesystem filled? Change your router username?
Thank you for feed back.Even if that were the case it wouldn't effect an existing crontab file. There is nothing in the basic firmware that touches the crontab files. It doesn't even exist unless you create it yourself (or through add-on software).
is there away i can tell if this is filled?Was this all cron jobs or just specific ones? Any chance your /tmp filesystem filled? Change your router username?
You'd probably be experiencing other problems, but you can runis there away i can tell if this is filled?
df /tmp
You'd probably be experiencing other problems, but you can runCode:df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 257592 2372 255220 1% /tmp
This is almost certainly what happened, many cron entries to start services needs an ntp time synch, or they fail.I experienced a wan down event and some of the crons are centered around weather the internet is connected during startup so i think this may be the culprit of all the missing schedules.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!