bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · edit-21 year agoAutostart in Linux Mintsopuli.xyzexternal-linkmessage-square37linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkAutostart in Linux Mintsopuli.xyzbleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square37linkfedilink
minus-squareSnot Flickerman@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·edit-21 year agoWhen all else fails… crontab -e @reboot sleep 300 && sudo ./myshell.sh (this is actually broken on some distros)
minus-squareSnot Flickerman@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·edit-21 year agoJust 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.
minus-squarebleistift2@sopuli.xyzOPlinkfedilinkEnglisharrow-up0·1 year agoThanks. 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.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up0·1 year agoThough, 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.
minus-squareSnot Flickerman@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·1 year agoI actually edited my comment right as you were responding. It’s definitely broken in some distros, I think debian/ubuntu.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up0·1 year agoIt’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.
minus-squareScoopta@programming.devlinkfedilinkarrow-up0·1 year agoI’ve been in the systemd world so long none of my systems even have cron
minus-squareGravitySpoiled@lemmy.mllinkfedilinkEnglisharrow-up0·1 year agoThat sounds like a sad world. I like cron
minus-squareScoopta@programming.devlinkfedilinkarrow-up0·1 year agoLOL, I actually like systemd timers, cron seems easier to setup quickly but I do like some of the features of timers combined with services.
When all else fails…
crontab -e@reboot sleep 300 && sudo ./myshell.sh(this is actually broken on some distros)
Why the long delay?
Just 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.
Thanks.
man 5 crontabsays the@rebootsyntax is supported, so I’ll give that a try if I don’t stumble upon a different solution.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.
I actually edited my comment right as you were responding. It’s definitely broken in some distros, I think debian/ubuntu.
It’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.
I’ve been in the systemd world so long none of my systems even have cron
Reject systemd embrace bashrc.
That sounds like a sad world. I like cron
LOL, I actually like systemd timers, cron seems easier to setup quickly but I do like some of the features of timers combined with services.