1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2014 Noah Meyerhans <frodo@morgul.net>
3 # Licensed under the terms of the GNU General Public License version 2
4 # or (at your discretion) any later later version
10 config_file
=/etc
/bind
/named.conf
11 pid_file
=/var
/run
/named
/named.pid
13 logdir
=/var
/log
/named
/
14 cachedir
=/var
/cache
/bind
16 config_file
=/etc
/bind
/named.conf
19 for dir
in $libdir $logdir $cachedir; do
29 user_exists
bind 57 || user_add
bind 57
30 group_exists
bind 57 || group_add
bind 57
33 procd_set_param
command /usr
/sbin
/named
-u bind -f -c $config_file
34 procd_set_param respawn