Magellan Linux

Annotation of /trunk/hal/hald.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (hide annotations) (download)
Tue May 3 15:32:40 2005 UTC (19 years ago) by niro
File size: 739 byte(s)
initial release

1 niro 18 #!/bin/bash
2     # $Header: /root/magellan-cvs/src/hal/hald.rc,v 1.1 2005-05-03 15:32:40 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/sysconfig/rc
14     source $rc_functions
15    
16    
17     case "$1" in
18     start)
19     echo -e ${COLOREDSTAR}"Starting Hardware Abstraction Layer daemon ..."
20     start-stop-daemon --start -q --exec /usr/sbin/hald
21     evaluate_retval
22     splash svc_started splash 0
23     ;;
24    
25     stop)
26     echo -e ${COLOREDSTAR}"Stopping Hardware Abstraction Layer daemon ..."
27     start-stop-daemon --stop -q --pidfile /var/run/hald/hald.pid
28     evaluate_retval
29     splash svc_stopped splash 0
30     ;;
31    
32     restart)
33     $0 stop
34     sleep 1
35     $0 start
36     ;;
37    
38     *)
39     echo "Usage: $0 {start|stop|restart}"
40     exit 1
41     ;;
42     esac