3 ms·
> But yeah: unit files are (non-sarcastically) pretty good. I personally like service managers more that have clean shell scripts such as runit or OpenRC where
by Blikkentrekker 6y ago
> But yeah: unit files are (non-sarcastically) pretty good.
I personally like service managers more that have clean shell scripts such as runit or OpenRC where shell scripts more so look like this:
#!/usr/bin/openrc-run
depends="some list of services to depend on"
after="some list of services which need to start earlier"
cmd="/path/to/executable"
args="command line arguments"
The nice thing is that it's a shell script, so each of these lines can be defined conditionally.
- throw0101a 6y agoSee also the BSDs, which have similarly simple scripts