mpdcron icon indicating copy to clipboard operation
mpdcron copied to clipboard

systemd support

Open jgresty opened this issue 11 years ago • 1 comments

It would be nice to have some systemd support. I have a service file for my own use that could work:

[Unit]
Description=mpdcron

[Service]
Environment="MPDCRON_DIR=/var/lib/mpd/mpdcron"
ExecStart=/usr/bin/mpdcron --no-daemon

[Install]
WantedBy=multi-user.target

jgresty avatar Aug 09 '14 13:08 jgresty

+1 Also it would be better to add something like code below, to check if mpd is running.

Requires=mpd.service
After=mpd.service

mufasa71 avatar Oct 08 '14 18:10 mufasa71