added fix for #212549: init script does not unmount /proc filesystem
This commit is contained in:
parent
28242bb7c3
commit
511f41b9e2
|
@ -781,6 +781,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
- fix for #200465: named-checkzone and co. cannot be run as non-root user
|
- fix for #200465: named-checkzone and co. cannot be run as non-root user
|
||||||
- added fix for #212348: chroot'd named causes df permission denied error
|
- added fix for #212348: chroot'd named causes df permission denied error
|
||||||
- added fix for #211249, #211083 - problems with stopping named
|
- added fix for #211249, #211083 - problems with stopping named
|
||||||
|
- added fix for #212549: init script does not unmount /proc filesystem
|
||||||
|
|
||||||
* Fri Oct 13 2006 Martin Stransky <stransky@redhat.com> - 30:9.3.3-5
|
* Fri Oct 13 2006 Martin Stransky <stransky@redhat.com> - 30:9.3.3-5
|
||||||
- fix for #209359: bind-libs from compatlayer CD will not
|
- fix for #209359: bind-libs from compatlayer CD will not
|
||||||
|
|
10
named.init
10
named.init
|
@ -220,6 +220,16 @@ stop() {
|
||||||
rm -f /var/run/named.pid
|
rm -f /var/run/named.pid
|
||||||
rm -f /var/run/named_sdb.pid 2>/dev/null
|
rm -f /var/run/named_sdb.pid 2>/dev/null
|
||||||
fi;
|
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
|
if [ $RETVAL -eq 0 ]; then
|
||||||
success
|
success
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue