blob: 4cee985339abc6a03f877a5b631253c05cbebd98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
#
# Start or stop the xbms server
#
# $FreeBSD$
pidfile="/var/run/xbms.pid"
name="xbms"
case "$1" in
start)
echo -n " xbms"
if [ -f /usr/local/etc/xbms.conf.sample ]; then
/usr/local/bin/xbms
fi
;;
stop)
if [ ! -f /var/run/xbms.pid ]; then
echo "XBMS not running"
exit 64
fi
kill `cat /var/run/xbms.pid`
;;
status)
ps -auxww | egrep ${name} | egrep -v "($0|egrep)"
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop | status}"
echo ""
exit 64
;;
esac
|