[nsd: 1/3] fix initscript to also use root, not nsd for piddir

Paul Wouters pwouters at fedoraproject.org
Tue Nov 29 19:08:05 UTC 2011


commit 8e84d27c840b0779cbde519577776e3e05e8cf62
Author: Paul Wouters <paul at xelerance.com>
Date:   Tue Jun 7 10:24:09 2011 -0400

    fix initscript to also use root, not nsd for piddir

 nsd.init |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/nsd.init b/nsd.init
index 2c96ec6..9b42669 100755
--- a/nsd.init
+++ b/nsd.init
@@ -25,7 +25,6 @@ NSD_PIDFILE="/var/run/nsd/nsd.pid"
 NSD_XFRDFILE="/var/lib/nsd/xfrd.state"
 NSDC_PROG="/usr/sbin/nsdc"
 NSD_PIDDIR=`dirname $NSD_PIDFILE`
-NSD_USER="nsd"
 
 # Source function library.
 . /etc/rc.d/init.d/functions
@@ -46,10 +45,7 @@ start() {
   [ -f $NSD_CONF ] || exit 5
   [ -x $NSD_PROG ] || exit 5
   # /var/run could (and should) be tmpfs
-  [ -d $NSD_PIDDIR ] || {
-      mkdir -p $NSD_PIDDIR
-      chown $NSD_USER:$NSD_USER $NSD_PIDDIR
-  }
+  [ -d $NSD_PIDDIR ] || mkdir -p $NSD_PIDDIR
 
   echo -n $"Starting nsd:"
   $NSDC_PROG -c $NSD_CONF rebuild >/dev/null 2>&1


More information about the scm-commits mailing list