this post was submitted on 24 Dec 2024
156 points (100.0% liked)
Programmer Humor
420 readers
33 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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
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.
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.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.