9
submitted 5 months ago* (last edited 5 months ago) by helloworld@lemmy.ml to c/linuxquestions@lemmy.zip

I think there are multiple things one could do to achieve this, but am uncertain which way to go:

  • if you use systemd create a systemd service I guess? How to create systemd service that runs a (python) script on startup?
  • some files similar to .bashrc always run on system startup/boot?; use this if you are less fancy / have no systemd
you are viewing a single comment's thread
view the rest of the comments
[-] Atherel@lemmy.dbzer0.com 1 points 5 months ago

If it's a service, best to use systemd or your OSs equivalent. If that's not possible, the @boot cronjob was already mentioned.

Also maybe look at supervisord or s6.

this post was submitted on 25 Aug 2025
9 points (100.0% liked)

Linux Questions

3653 readers
9 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS