aboutsummaryrefslogblamecommitdiffstats
path: root/community/mpdscribble/mpdscribble.initd
blob: ac8a41e68fec5efeb3e9eccc88d7ea7119a47ff5 (plain) (tree)
1
                  


















                                                                                                                                       
#!/sbin/openrc-run

depend() {
	need net
	use mpd
}

start () {
	
	ebegin "Starting Music Player Daemon Audioscrobbler client"
	start-stop-daemon --start --exec /usr/bin/mpdscribble -- --pidfile /var/run/mpdscribble.pid
	eend $?
}

stop () {
	ebegin "Stopping Music Player Daemon Audioscrobbler client"
	start-stop-daemon --stop --quiet -p /var/run/mpdscribble.pid --exec /usr/bin/mpdscribble || eerror "mpdscribble is not running"
	rm -f /var/run/mpdscribble.pid
	eend $?
}