2018-05-24 16:10:11 +00:00
|
|
|
[Unit]
|
|
|
|
Description=myMPD server daemon
|
|
|
|
Requires=network.target local-fs.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=MPD_HOST=localhost
|
|
|
|
Environment=MPD_PORT=6600
|
|
|
|
Environment=MPD_PASSWORD=
|
|
|
|
Environment=WEB_PORT=80
|
|
|
|
Environment=MYMPD_USER=nobody
|
2018-05-27 14:22:18 +00:00
|
|
|
Environment=COVERIMAGE=--coverimage folder.jpg
|
2018-06-24 18:25:58 +00:00
|
|
|
Environment=STATEFILE=--statefile /var/lib/mympd/mympd.state
|
2018-07-10 21:58:48 +00:00
|
|
|
#Environment=SSL=-S -W 443 -C /etc/mympd/ssl/server.pem -K /etc/mympd/ssl/server.key
|
2018-05-24 16:10:11 +00:00
|
|
|
EnvironmentFile=/etc/default/mympd
|
2018-07-10 21:58:48 +00:00
|
|
|
ExecStart=/usr/bin/mympd --user $MYMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $COVERIMAGE $STATEFILE $SSL
|
2018-05-24 16:10:11 +00:00
|
|
|
Type=simple
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|