source:
freewrt/package/avahi/files/avahi-daemon.init@
475ad56
| Last change on this file since 475ad56 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 288 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | BIN=avahi-daemon |
| 4 | DEFAULT=/etc/default/$BIN |
| 5 | OPTIONS="-D" |
| 6 | RUN_D=/var/run/$BIN |
| 7 | [ -f $DEFAULT ] && . $DEFAULT |
| 8 | |
| 9 | case $1 in |
| 10 | start) |
| 11 | mkdir -p $RUN_D |
| 12 | $BIN $OPTIONS |
| 13 | ;; |
| 14 | stop) |
| 15 | $BIN -k |
| 16 | ;; |
| 17 | reload) |
| 18 | $BIN -r |
| 19 | ;; |
| 20 | *) |
| 21 | echo "usage: $0 (start|stop|reload)" |
| 22 | exit 1 |
| 23 | esac |
| 24 | |
| 25 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
