Merge pull request #8 from Kernald/systemd-unit-config

Allow the sytemd unit to read a configuration file
This commit is contained in:
Andy 2014-04-13 22:37:43 +02:00
commit 237de050ba
1 changed files with 5 additions and 1 deletions

View File

@ -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]