summaryrefslogtreecommitdiff
path: root/community-testing/xmms2/xmms2d.rc
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-11-15 14:34:01 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-11-15 14:34:01 +0000
commit28b13b7e8e6e1e4fa1593f0dfb1c37569f2f90a8 (patch)
treeb5961b2312f5afe599dba0d1b9a3b6f6e3d04091 /community-testing/xmms2/xmms2d.rc
parent3d151dfc8e08b65c2c1d4b5e8081562d56ee7d41 (diff)
Tue Nov 15 14:33:58 UTC 2011
Diffstat (limited to 'community-testing/xmms2/xmms2d.rc')
-rwxr-xr-xcommunity-testing/xmms2/xmms2d.rc39
1 files changed, 0 insertions, 39 deletions
diff --git a/community-testing/xmms2/xmms2d.rc b/community-testing/xmms2/xmms2d.rc
deleted file mode 100755
index 9d4d2b7e9..000000000
--- a/community-testing/xmms2/xmms2d.rc
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/xmms2d.conf
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof xmms2d xmms2-et`
-case "$1" in
- start)
- stat_busy "Starting xmms2d"
- [ -z "$PID" ] && su -c '/usr/bin/xmms2-launcher $XMMS2_PARAMETERS 1>/dev/null 2>/dev/null' - $XMMS2_USER
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon xmms2d
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping xmms2d"
- [ ! -z "$PID" ] && su -c '/usr/bin/xmms2 quit &>/dev/null' - $XMMS2_USER
- if [ $? -gt 0 ]; then
- stat_fail
- else
- for i in `seq 1 10`; do
- [ -d /proc/$PID ] || { stat_done; rm_daemon xmms2d; exit 0; }
- sleep 1
- done
- stat_fail
- fi
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0