@bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish • edit-23 months agoAutostart in Linux Mintsopuli.xyzimagemessage-square38fedilinkarrow-up1313arrow-down110
arrow-up1303arrow-down1imageAutostart in Linux Mintsopuli.xyz@bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish • edit-23 months agomessage-square38fedilink
minus-squareSnot FlickermanlinkfedilinkEnglish41•edit-23 months agoWhen all else fails… crontab -e @reboot sleep 300 && sudo ./myshell.sh (this is actually broken on some distros)
minus-square@Scoopta@programming.devlinkfedilink25•3 months agoI’ve been in the systemd world so long none of my systems even have cron
minus-square@marcos@lemmy.worldlinkfedilink5•3 months 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 FlickermanlinkfedilinkEnglish3•3 months agoI actually edited my comment right as you were responding. It’s definitely broken in some distros, I think debian/ubuntu.
minus-square@marcos@lemmy.worldlinkfedilink3•3 months 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-squareSnot FlickermanlinkfedilinkEnglish13•edit-23 months 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-square@bleistift2@sopuli.xyzOPlinkfedilinkEnglish3•3 months 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.
When all else fails…
crontab -e
@reboot sleep 300 && sudo ./myshell.sh
(this is actually broken on some distros)
I’ve been in the systemd world so long none of my systems even have cron
Reject systemd embrace bashrc.
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.
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 crontab
says the@reboot
syntax is supported, so I’ll give that a try if I don’t stumble upon a different solution.