From 5e88de62ea5a2d5b348ed1927f83661be0bd78cf Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 18 Sep 2017 19:40:44 +0200 Subject: [PATCH] add sndiod.service file for systemd-based systems --- configure | 3 ++- contrib/sndiod.service.in | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 contrib/sndiod.service.in diff --git a/configure b/configure index cfbaa7f..3882699 100755 --- a/configure +++ b/configure @@ -241,7 +241,8 @@ fi for f in Makefile aucat/Makefile midicat/Makefile sndiod/Makefile \ libsndio/Makefile \ examples/Makefile \ -contrib/init.d.sndiod +contrib/init.d.sndiod \ +contrib/sndiod.service do sed \ -e "s:@bindir@:$bindir:" \ diff --git a/contrib/sndiod.service.in b/contrib/sndiod.service.in new file mode 100644 index 0000000..84a8d7e --- /dev/null +++ b/contrib/sndiod.service.in @@ -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