Magellan Linux

Contents of /trunk/hal/hald.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 733 - (show annotations) (download)
Fri Dec 26 02:15:57 2008 UTC (15 years, 3 months ago) by niro
File size: 897 byte(s)
-fixed moved rc

1 #!/bin/bash
2 # $Header: /root/magellan-cvs/src/hal/hald.rc,v 1.3 2008-12-26 02:15:57 niro Exp $
3
4 #%rlevels: 0:k 1:k 6:k 7:s
5 #%start: 58
6 #%stop: 45
7
8 #deps
9 #%needs:
10 #%before:
11 #%after:
12
13 source /etc/conf.d/rc
14 source $rc_functions
15
16
17 case "$1" in
18 start)
19 echo -e ${COLOREDSTAR}"Starting Hardware Abstraction Layer daemon ..."
20
21 # allow hal to process acpi events
22 if [ -f /proc/acpi/event ]
23 then
24 chgrp haldaemon /proc/acpi/event
25 chmod 440 /proc/acpi/event
26 fi
27
28 start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog
29 evaluate_retval
30 splash svc_started splash 0
31 ;;
32
33 stop)
34 echo -e ${COLOREDSTAR}"Stopping Hardware Abstraction Layer daemon ..."
35 start-stop-daemon --stop -q --pidfile /var/run/hald/hald.pid
36 evaluate_retval
37 splash svc_stopped splash 0
38 ;;
39
40 restart)
41 $0 stop
42 sleep 1
43 $0 start
44 ;;
45
46 *)
47 echo "Usage: $0 {start|stop|restart}"
48 exit 1
49 ;;
50 esac