aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mpd/mpd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-14 13:33:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-14 13:33:10 +0000
commit6b201dfcd600db5a897710703d4aec83e9b6a0c9 (patch)
treeae9084eddf23d39a69e118c3b189b20025e019c9 /testing/mpd/mpd.initd
parentce09110732b963e07bb8edd1166ff946c333ebe3 (diff)
downloadaports-6b201dfcd600db5a897710703d4aec83e9b6a0c9.tar.bz2
aports-6b201dfcd600db5a897710703d4aec83e9b6a0c9.tar.xz
main/mpd: moved from testing
Diffstat (limited to 'testing/mpd/mpd.initd')
-rw-r--r--testing/mpd/mpd.initd44
1 files changed, 0 insertions, 44 deletions
diff --git a/testing/mpd/mpd.initd b/testing/mpd/mpd.initd
deleted file mode 100644
index 10601dc47d..0000000000
--- a/testing/mpd/mpd.initd
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/sbin/runscript
-
-# init.d file for music player daemon
-
-NAME=mpd
-DAEMON=/usr/bin/$NAME
-CONF=/etc/mpd.conf
-
-depend() {
- need localmount
- use net netmount nfsmount esound pulseaudio
- after firewall
-}
-
-checkconfig() {
- [ -f "$CONF" ] && return 0
- eerror "configuration file $CONF is missing"
- return 1
-}
-
-get_pidfile() {
- pidfile=$(awk '$1 == "pid_file" { print $2 }' "$CONF")
- pidfile=${pidfile:-/var/run/mpd/$NAME.pid}
-}
-
-start() {
- checkconfig || return 1
- get_pidfile
- ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet \
- --pidfile $pidfile\
- --exec ${DAEMON} -- ${MPD_OPTS}
- eend $?
-}
-
-stop() {
- get_pidfile
- ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --quiet \
- --pidfile $pidfile \
- --exec ${DAEMON}
- eend $?
-}
-