this post was submitted on 04 Jul 2024
15 points (94.1% liked)
Linux 101 stuff. Questions are encouraged, noobs are welcome!
1009 readers
1 users here now
Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why use
/bin/bash
in yourExecStart
directive? You can just specify the path to your daemon./bin/bash
expects a script, not a binary, which your daemon most probably is…Nope, leaving off the initial
env
call, in this corrected case, gives a 203/EXEC error.It would have been easy if I could just call the binary, but alas. Dunno why, but there it is.
ETA: this is on Bazzite, so maybe
systemctl
behaves slightly differently...?Additional question: when starting the daemon from the cli, does it terminate?
Nope.
sudo /path/to/daemon
works. Thankfully, the service launches, now that I've included/usr/bin/env
.It would have been nice if it was an easy to read script, to tell what it needed, but alas.