]> git.ktnx.net Git - mpd-feeder.git/commitdiff
more systemd: require config file, run as a separate user, install
authorDamyan Ivanov <dmn@debian.org>
Fri, 26 Nov 2021 08:09:55 +0000 (08:09 +0000)
committerDamyan Ivanov <dmn@debian.org>
Fri, 26 Nov 2021 08:09:55 +0000 (08:09 +0000)
eg/mpd-feeder.service

index 22ff10008e300686b878c38e324323e6ad4b2577..07a28d2824ca419762ec142c863c004aab0b20f1 100644 (file)
@@ -1,5 +1,10 @@
 [Unit]
 Description=MPD playlist manager
+ConditionPathExists=/etc/mpd-feeder/mpd-feeder.conf
 
 [Service]
+User=mpd-feeder
 Exec=/usr/bin/mpd-feeder
+
+[Install]
+WantedBy=multi-user.target