blob: 463d27fec89b7055aea04938936e6cb5980f69ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/runscript
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 $?
}
|