diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-05-12 14:23:50 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-05-12 14:24:13 -0500 |
commit | b48f2bd0ccdfd3306a1f9f38a5c9f20bff2832e6 (patch) | |
tree | a1266776472b008acf4dfa81306ce45722e09b58 /main/mpdscribble/mpdscribble.initd | |
parent | 9375b360afbf90646eb93493101fbd9d67786936 (diff) | |
download | aports-b48f2bd0ccdfd3306a1f9f38a5c9f20bff2832e6.tar.bz2 aports-b48f2bd0ccdfd3306a1f9f38a5c9f20bff2832e6.tar.xz |
main/mpdscribble: new aport
Diffstat (limited to 'main/mpdscribble/mpdscribble.initd')
-rw-r--r-- | main/mpdscribble/mpdscribble.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/mpdscribble/mpdscribble.initd b/main/mpdscribble/mpdscribble.initd new file mode 100644 index 0000000000..463d27fec8 --- /dev/null +++ b/main/mpdscribble/mpdscribble.initd @@ -0,0 +1,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 $? +} |