What's new

my crontab entries disappear after a reboot

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I'm happy to argue that you're wrong in being wrong, since amtm also uses init-start for the reboot scheduler script. :p

From the wiki..

init-start
Called right after JFFS got mounted, and before any of the services get started. This is the earliest part of the boot process where you can insert something.

That might be too soon for logger to show up.. and if cron is not running yet.. hmmm..
 
From the wiki..

init-start
Called right after JFFS got mounted, and before any of the services get started. This is the earliest part of the boot process where you can insert something.

That might be too soon for logger to show up.. and if cron is not running yet.. hmmm..
Instead of logger, add a command like this:
Code:
touch /tmp/init-start-ran-ok
And see if it's there after a reboot. It won't have a valid timestamp since it's before time is synced, but you'll know it ran the script. You can't go wrong with services-start either, but init-start isn't technically wrong.
 
ahh I was starting to wonder that :) Thank you so much for checking. I will test it in a little bit.
Probably a sign of old age. My brain was thinking one thing and my fingers were typing something else.

I'm happy to argue that you're wrong in being wrong, since amtm also uses init-start for the reboot scheduler script. :p
Interesting. Maybe it's because amtm uses cru.

That might be too soon for logger to show up.. and if cron is not running yet.. hmmm..
It's too early for logger. I think using cru makes it wait.
 
Last edited:
Yes, that can be the only viable explanation now. cru adds to a <user>.new file, and when crond starts it seems to recreate the actual crontabs.

So even moving it to services-start didn't work. What did work was using "cru a" .. so both @dave14305 and @ColinTaylor were both right :)
What a journey of discovery :) I'm sure my family will be glad the internet stops going away :)
Thank you both for all the help!
 
So even moving it to services-start didn't work. What did work was using "cru a" .. so both @dave14305 and @ColinTaylor were both right :)
What a journey of discovery :) I'm sure my family will be glad the internet stops going away :)
Thank you both for all the help!
As my wife might say to me, I now say to you (just to see what it feels like): “If you would have listened to me in post #7, all this could have been avoided!” :D
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top