File: ledd-sysv-redhat.in

package info (click to toggle)
ledcontrol 0.5.2-11
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 784 kB
  • ctags: 259
  • sloc: ansic: 3,264; sh: 813; makefile: 183; perl: 49
file content (40 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
#
#       /etc/rc.d/init.d/ledd
#
# Starts the led daemon (ledd, part of the ledcontrol package).
#
# chkconfig: 345 40 60
# description: Shows information on the normally-unused keyboard LEDs.
# processname: ledd


# Source function library.
. /etc/rc.d/init.d/functions


case "$1" in
    start)
        echo -n "Starting led daemon: "
	daemon "@sbindir_int@/ledd" --daemon --pidfile /var/run/ledd.pid
        touch /var/lock/subsys/ledd
        ;;
    stop)
        echo -n "Shutting down led daemon: "
	killproc ledd
	echo
        rm -f /var/lock/subsys/ledd
        ;;
    status)
	status ledd
        ;;
    restart|reload|force-reload)
	$0 stop
	$0 start
        ;;
    *)
        echo "Usage: ledd {start|stop|status|restart}"
        exit 1
        ;;
esac