1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/avahi/avahi-daemon.rc,v 1.1 2009-04-28 16:44:27 niro Exp $ |
# $Header: /root/magellan-cvs/src/avahi/avahi-daemon.rc,v 1.2 2009-04-28 16:55:48 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 3:s 4:s 5:s 0:k 6:k |
#%rlevels: 3:s 4:s 5:s 0:k 6:k |
5 |
#%start: 80 |
#%start: 80 |
17 |
case "$1" in |
case "$1" in |
18 |
start) |
start) |
19 |
echo -e ${COLOREDSTAR}"Starting avahi-daemon ..." |
echo -e ${COLOREDSTAR}"Starting avahi-daemon ..." |
20 |
/sbin/avahi-daemon -D |
/usr/sbin/avahi-daemon -D |
21 |
evaluate_retval |
evaluate_retval |
22 |
|
|
23 |
update_svcstatus $1 |
update_svcstatus $1 |
26 |
|
|
27 |
stop) |
stop) |
28 |
echo -e ${COLOREDSTAR}"Stopping avahi-daemon ..." |
echo -e ${COLOREDSTAR}"Stopping avahi-daemon ..." |
29 |
/sbin/avahi-daemon -k |
/usr/sbin/avahi-daemon -k |
30 |
evaluate_retval |
evaluate_retval |
31 |
|
|
32 |
update_svcstatus $1 |
update_svcstatus $1 |
35 |
|
|
36 |
reload) |
reload) |
37 |
echo -e ${COLOREDSTAR}"Reloading avahi-daemon ..." |
echo -e ${COLOREDSTAR}"Reloading avahi-daemon ..." |
38 |
/sbin/avahi-daemon -r |
/usr/sbin/avahi-daemon -r |
39 |
evaluate_retval |
evaluate_retval |
40 |
;; |
;; |
41 |
|
|