this post was submitted on 31 Jul 2023
23 points (100.0% liked)
General Programming Discussion
7844 readers
24 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Instead of a script try the command directly in ExecStart. Systemd should take care of keeping the process running without you having to do nohop and disown.
If you insist on using a script you should use a full path to sh or bash with the path to your script as an argument like ExecStart=/usr/bin/bash /path/to/script.sh.
You might wanna proofread this, mate
Any better?