mirror of https://github.com/ericonr/sndio.git
add sndiod.service file for systemd-based systems
This commit is contained in:
parent
0f5f91fae3
commit
5e88de62ea
|
@ -241,7 +241,8 @@ fi
|
||||||
for f in Makefile aucat/Makefile midicat/Makefile sndiod/Makefile \
|
for f in Makefile aucat/Makefile midicat/Makefile sndiod/Makefile \
|
||||||
libsndio/Makefile \
|
libsndio/Makefile \
|
||||||
examples/Makefile \
|
examples/Makefile \
|
||||||
contrib/init.d.sndiod
|
contrib/init.d.sndiod \
|
||||||
|
contrib/sndiod.service
|
||||||
do
|
do
|
||||||
sed \
|
sed \
|
||||||
-e "s:@bindir@:$bindir:" \
|
-e "s:@bindir@:$bindir:" \
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=sndio audio and MIDI server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
Restart=on-abort
|
||||||
|
EnvironmentFile=-/etc/default/sndiod
|
||||||
|
ExecStart=@bindir@/sndiod $DAEMON_OPTS
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue