From bf96db2ba3947b354a59f2da60ae39466125aa94 Mon Sep 17 00:00:00 2001 From: Marc Plano-Lesay Date: Sat, 12 Apr 2014 19:45:40 +0200 Subject: [PATCH] Allow the sytemd unit to read a configuration file --- contrib/ympd.service | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/ympd.service b/contrib/ympd.service index d6631c2..e374728 100644 --- a/contrib/ympd.service +++ b/contrib/ympd.service @@ -3,7 +3,11 @@ Description=ympd server daemon Requires=network.target local-fs.target [Service] -ExecStart=/usr/bin/ympd +Environment=MPD_HOST=localhost +Environment=MPD_PORT=6600 +Environment=WEB_PORT=8080 +EnvironmentFile=/etc/conf.d/ympd +ExecStart=/usr/bin/ympd -h $MPD_HOST -p $MPD_PORT -w $WEB_PORT Type=simple [Install]