diff options
Diffstat (limited to 'source/n/bind/default.named')
-rw-r--r-- | source/n/bind/default.named | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/n/bind/default.named b/source/n/bind/default.named new file mode 100644 index 00000000..2983934f --- /dev/null +++ b/source/n/bind/default.named @@ -0,0 +1,15 @@ +# User to run named as: +BIND_USER=named + +# By default, named will also run as the primary group of $BIND_USER. +# We will determine this now for the purpose of also chowning /run/named +# and /var/named to this group. You may also comment this section out and +# set BIND_GROUP manually if desired. +BIND_GROUP="$(groups $BIND_USER | cut -f 3 -d " ")" +# Fallback if there's no primary group for $BIND_USER: +if [ -z "$BIND_GROUP" ]; then + BIND_GROUP=wheel +fi + +# Options to run named with: +NAMED_OPTIONS="-u $BIND_USER" |