mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-29 12:20:26 +00:00
5abfdfda7b
init script: depend on $remote_fs instead of $local_fs. Reason: /usr can be mounted a remote filesystem. Also depend on mpd (instead of $mpd, which doesn't seem to exist.. at least on my system) Also provide a default config (which should be installed as /etc/default/ympd) This commit makes the systemd unit file as well as the init script load values from this configuration file so the user can change ympd settings easily when running it as a service.
16 lines
384 B
Desktop File
16 lines
384 B
Desktop File
[Unit]
|
|
Description=ympd server daemon
|
|
Requires=network.target local-fs.target
|
|
|
|
[Service]
|
|
Environment=MPD_HOST=localhost
|
|
Environment=MPD_PORT=6600
|
|
Environment=WEB_PORT=8080
|
|
Environment=YMPD_USER=nobody
|
|
EnvironmentFile=/etc/default/ympd
|
|
ExecStart=/usr/bin/ympd --user $YMPD_USER --webport $MPD_WEBHOST --host $MPD_HOST --port $MPD_PORT
|
|
Type=simple
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|