aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/named.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.misc/named.in')
-rw-r--r--init.d.misc/named.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/init.d.misc/named.in b/init.d.misc/named.in
index d5218ea7..3674442d 100644
--- a/init.d.misc/named.in
+++ b/init.d.misc/named.in
@@ -4,12 +4,22 @@
command=/usr/sbin/named
command_args=${named_args}
-pidfile=@VARBASE@/run/named/pid
+pidfile=@VARBASE@/run/named.pid
name="Domain Name server"
extra_started_commands="reload"
namedb=/etc/namedb
-named_uid=${named_uid:-bind}
+uid=named
+case "${RC_UNAME}" in
+ FreeBSD)
+ uid=bind
+ pidfile=@VARBASE@/run/named/pid
+ ;;
+ Linux)
+ uid=bind
+ ;;
+esac
+named_uid=${named_uid:-${uid}}
depend()
{