source:
freewrt/package/bind/files/named.init@
621d5d2
| Last change on this file since 621d5d2 was 65d016f, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 336 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | . /etc/rc.conf |
| 4 | |
| 5 | case $1 in |
| 6 | autostart) |
| 7 | test x"${named:-NO}" = x"NO" && exit 0 |
| 8 | exec $0 start |
| 9 | ;; |
| 10 | start) |
| 11 | if [ -f /etc/bind/named.conf ]; then |
| 12 | named -c /etc/bind/named.conf |
| 13 | fi |
| 14 | ;; |
| 15 | stop) |
| 16 | killall named |
| 17 | ;; |
| 18 | restart) |
| 19 | $0 stop |
| 20 | $0 start |
| 21 | ;; |
| 22 | *) |
| 23 | echo "usage: $0 {start | stop | restart}" |
| 24 | exit 1 |
| 25 | esac |
| 26 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
