Magellan Linux

Annotation of /trunk/avahi/avahi-dnsconfd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 775 - (hide annotations) (download)
Tue Apr 28 16:44:27 2009 UTC (15 years, 6 months ago) by niro
File size: 836 byte(s)
-added initscripts

1 niro 775 #!/bin/bash
2     # $Header: /root/magellan-cvs/src/avahi/avahi-dnsconfd.rc,v 1.1 2009-04-28 16:44:27 niro Exp $
3    
4     #%rlevels: 3:s 4:s 5:s 0:k 6:k
5     #%start: 90
6     #%stop: 10
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 avahi-dnsconfd ..."
20     /sbin/avahi-dnsconfd -D
21     evaluate_retval
22    
23     update_svcstatus $1
24     splash svc_started "$(basename $0)" 0
25     ;;
26    
27     stop)
28     echo -e ${COLOREDSTAR}"Stopping avahi-dnsconfd ..."
29     /sbin/avahi-dnsconfd -k
30     evaluate_retval
31    
32     update_svcstatus $1
33     splash svc_stopped "$(basename $0)" 0
34     ;;
35    
36     reload)
37     echo -e ${COLOREDSTAR}"Reloading avahi-dnsconfd ..."
38     /sbin/avahi-dnsconfd -r
39     evaluate_retval
40     ;;
41    
42     restart)
43     $0 stop
44     sleep 1
45     $0 start
46     ;;
47    
48     *)
49     echo "Usage: $0 {start|stop|reload|restart}"
50     exit 1
51     ;;
52     esac