updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / qtsixa / sixad-init.patch
blobafc0aeb8523a16830823b801796e8dd8bdb3b783
1 --- QtSixA-1.5.1/sixad/sixad.init.ori 2011-07-18 20:04:47.000000000 +0200
2 +++ QtSixA-1.5.1/sixad/sixad.init 2011-10-22 16:40:56.000000000 +0200
3 @@ -19,40 +19,40 @@
4 ps -e | grep sixad-bin > /dev/null
7 -. /lib/lsb/init-functions
8 +. /etc/rc.conf
9 +. /etc/rc.d/functions
11 case "$1" in
12 start)
13 if (sixad_already_running_check "$1"); then
14 - log_warning_msg "sixad is already running"
15 + stat_busy "Sixad is already running."
16 + stat_fail
17 else
19 - log_daemon_msg "Starting sixad"
20 + stat_busy "Starting sixad"
21 $DAEMON --start &>>/var/log/sixad &
22 - log_end_msg 0
23 + stat_done
27 stop)
28 if (sixad_already_running_check "$1"); then
30 - log_daemon_msg "Stopping sixad"
31 + stat_busy "Stopping sixad"
32 $DAEMON --stop || true
33 - log_end_msg 0
34 + stat_done
36 else
37 - log_warning_msg "sixad is not running"
38 + stat_busy "Stopping sixad... is not running"
39 + stat_fail
42 restart)
43 $0 stop
44 $0 start
46 - status)
47 - status_of_proc "sixad-bin" "sixad" && exit 0 || exit $?
48 - ;;
50 - echo "Usage: /etc/init.d/sixad {start|stop|restart|status}" >&2
51 + echo "Usage: /etc/rc.d/sixad {start|stop|restart}" >&2
52 exit 1
54 esac