Annotation of /trunk/avahi/avahi-daemon.rc
Parent Directory | Revision Log
Revision 776 -
(hide annotations)
(download)
Tue Apr 28 16:55:48 2009 UTC (15 years, 6 months ago) by niro
File size: 834 byte(s)
Tue Apr 28 16:55:48 2009 UTC (15 years, 6 months ago) by niro
File size: 834 byte(s)
/usr/sbin !
1 | niro | 775 | #!/bin/bash |
2 | niro | 776 | # $Header: /root/magellan-cvs/src/avahi/avahi-daemon.rc,v 1.2 2009-04-28 16:55:48 niro Exp $ |
3 | niro | 775 | |
4 | #%rlevels: 3:s 4:s 5:s 0:k 6:k | ||
5 | #%start: 80 | ||
6 | #%stop: 20 | ||
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-daemon ..." | ||
20 | niro | 776 | /usr/sbin/avahi-daemon -D |
21 | niro | 775 | evaluate_retval |
22 | |||
23 | update_svcstatus $1 | ||
24 | splash svc_started "$(basename $0)" 0 | ||
25 | ;; | ||
26 | |||
27 | stop) | ||
28 | echo -e ${COLOREDSTAR}"Stopping avahi-daemon ..." | ||
29 | niro | 776 | /usr/sbin/avahi-daemon -k |
30 | niro | 775 | evaluate_retval |
31 | |||
32 | update_svcstatus $1 | ||
33 | splash svc_stopped "$(basename $0)" 0 | ||
34 | ;; | ||
35 | |||
36 | reload) | ||
37 | echo -e ${COLOREDSTAR}"Reloading avahi-daemon ..." | ||
38 | niro | 776 | /usr/sbin/avahi-daemon -r |
39 | niro | 775 | 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 |