Ticket #611: bind.sh

File bind.sh, 389 bytes (added by bchesneau@…, 21 years ago)

files/bind.sh

Line 
1#!/bin/sh
2
3PIDFILE=named.pid
4CAT=/bin/cat
5KILL=/bin/kill
6
7case "$1" in
8
9start)
10  echo "starting bind"
11  %%PREFIX%%/sbin/named
12  ;;
13
14restart)
15  echo "restarting bind"
16  $KILL -HUP `$CAT %%PREFIX%%/var/run/$PIDFILE` 
17  ;;
18
19stop)
20  echo "stopping bind"
21  $KILL -15 `$CAT %%PREFIX%%/var/run/$PIDFILE` 
22  ;;
23
24*)
25  echo "Usage: %%PREFIX%%/etc/rc.d/bind {start|stop|restart}"
26  exit 1
27  ;;
28
29esac