You're viewing a single thread.
When all else fails...
crontab -e
@reboot sleep 300 && sudo ./myshell.sh
(this is actually broken on some distros)
34 0 ReplyI've been in the systemd world so long none of my systems even have cron
21 0 ReplyThat sounds like a sad world. I like cron
24 0 ReplyLOL, I actually like systemd timers, cron seems easier to setup quickly but I do like some of the features of timers combined with services.
2 0 Reply
Though, not every cron supports that.
Also, if you are packaging software, you have to do it the right way. But if not, it's often easier to go and install an init script.
4 0 ReplyI actually edited my comment right as you were responding. It's definitely broken in some distros, I think debian/ubuntu.
3 0 ReplyIt's not broken. You just have to get a cron that supports it. Debian has at least one that does, but it's not the default one.
3 0 Reply
Why the long delay?
3 0 ReplyJust to make sure it pops off after fully starting up. I run a lot of old hardware, so it's useful for me. You may not need a delay.
13 0 Reply
Thanks.
man 5 crontab
says the@reboot
syntax is supported, so I’ll give that a try if I don’t stumble upon a different solution.3 0 Reply