summaryrefslogtreecommitdiffstats
path: root/named.init
diff options
context:
space:
mode:
authorMartin Stransky <stransky@fedoraproject.org>2006-10-30 13:37:47 +0000
committerMartin Stransky <stransky@fedoraproject.org>2006-10-30 13:37:47 +0000
commit511f41b9e2f21b6bcd21e3904679eaca5f9da145 (patch)
treeba6f27f743c9499f9079ba46d62e3a0933e46867 /named.init
parent28242bb7c351120fd87c39a120a4cf8eeff0fbdf (diff)
downloadbind-511f41b9e2f21b6bcd21e3904679eaca5f9da145.tar.gz
bind-511f41b9e2f21b6bcd21e3904679eaca5f9da145.tar.xz
bind-511f41b9e2f21b6bcd21e3904679eaca5f9da145.zip
added fix for #212549: init script does not unmount /proc filesystem
Diffstat (limited to 'named.init')
-rwxr-xr-xnamed.init10
1 files changed, 10 insertions, 0 deletions
diff --git a/named.init b/named.init
index 9dcde98..89fd0a2 100755
--- a/named.init
+++ b/named.init
@@ -220,6 +220,16 @@ stop() {
rm -f /var/run/named.pid
rm -f /var/run/named_sdb.pid 2>/dev/null
fi;
+ if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then
+ if egrep -q '^/proc[[:space:]]+'${ROOTDIR}'/proc' /proc/mounts; then
+ umount ${ROOTDIR}/proc >/dev/null 2>&1
+ fi
+ if [ $dbusEnabled -eq 1 ]; then
+ if egrep -q '^/[^[:space:]]+[[:space:]]+'${ROOTDIR}'/var/run/dbus' /proc/mounts; then
+ umount ${ROOTDIR}/var/run/dbus > /dev/null 2>&1
+ fi;
+ fi;
+ fi;
if [ $RETVAL -eq 0 ]; then
success
else