-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmadeo-uplayer.init
51 lines (46 loc) · 997 Bytes
/
madeo-uplayer.init
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
#
# Madeo-uplayer Madeo UPlayer
# chkconfig: - 99 1
# description: Madeo MUMS Player
#
### BEGIN INIT INFO
# Provides: madeo-uplayer
# Required-Start: $network $named $local_fs $remote_fs messagebus
# Required-Stop: $network $named $local_fs $remote_fs messagebus
# Default-Stop: 0 1 2 3 4 6
# Default-Start: 5
# Short-Description: Madeo UPlayer
# Description: Madeo MUMS Player
### END INIT INFO
prog=madeo-uplayer
lockfile=/var/lock/subsys/$prog
# Source function library.
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n $"Starting madeo-uplayer: "
/usr/bin/$prog &
echo
touch $lockfile
;;
stop)
echo -n $"Stopping madeo-uplayer: "
killproc python $prog
sleep 1
echo
rm -f $lockfile
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
status)
[ -f $lockfile ] || return 3
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 2
esac
exit 0