summaryrefslogtreecommitdiffstats
path: root/named.init
diff options
context:
space:
mode:
authorjvdias <jvdias@fedoraproject.org>2005-10-28 20:12:12 +0000
committerjvdias <jvdias@fedoraproject.org>2005-10-28 20:12:12 +0000
commita06ea57c08ec1bbd267c3be823d2575300371b3f (patch)
tree4a3f33c74dcd7d6df317ccc647eeb9f8a9df7efb /named.init
parent38a73ea995f2080736f599208f7f5c11e33338cb (diff)
downloadbind-a06ea57c08ec1bbd267c3be823d2575300371b3f.tar.gz
bind-a06ea57c08ec1bbd267c3be823d2575300371b3f.tar.xz
bind-a06ea57c08ec1bbd267c3be823d2575300371b3f.zip
check for -D option properly
Diffstat (limited to 'named.init')
-rwxr-xr-xnamed.init11
1 files changed, 8 insertions, 3 deletions
diff --git a/named.init b/named.init
index ffe8260..a5a2a79 100755
--- a/named.init
+++ b/named.init
@@ -67,14 +67,19 @@ start() {
if ! egrep -q "/proc ${ROOTDIR}/proc" /proc/mounts; then
mount --bind /proc ${ROOTDIR}/proc >/dev/null 2>&1
fi
- if echo "$OPTIONS" | egrep -q '(\<|['"'"'"\ ])-D(\>|['"'"'"\ ])'; then
+ dbus=0;
+ for a in $OPTIONS; do
+ if [ $a = "-D" ]; then
+ dbus=1;
+ fi;
+ done
+ if [ $dbus -eq 1 ]; then
if ! /bin/mount | egrep -q "^/var/run/dbus/system_bus_socket on ${ROOTDIR}/var/run/dbus/system_bus_socket"; then
mkdir -p ${ROOTDIR}/var/run/dbus
touch ${ROOTDIR}/var/run/dbus/system_bus_socket;
mount --bind /var/run/dbus/system_bus_socket ${ROOTDIR}/var/run/dbus/system_bus_socket > /dev/null 2>&1;
fi;
- fi;
-
+ fi;
fi
no_write_master_zones=0
if [ -e /etc/selinux/config ]; then