From 6ddd8c2ceb96da5a749baae677dd75bb01d4d6ae Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 26 Nov 2021 08:09:55 +0000 Subject: [PATCH] more systemd: require config file, run as a separate user, install --- eg/mpd-feeder.service | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eg/mpd-feeder.service b/eg/mpd-feeder.service index 22ff100..07a28d2 100644 --- a/eg/mpd-feeder.service +++ b/eg/mpd-feeder.service @@ -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 -- 2.39.5