diff options
author | Martin Stransky <stransky@fedoraproject.org> | 2006-10-05 11:14:27 +0000 |
---|---|---|
committer | Martin Stransky <stransky@fedoraproject.org> | 2006-10-05 11:14:27 +0000 |
commit | 66f11969cffe3ff605a7f4e887f7e654c52b7499 (patch) | |
tree | 0ff47a5216579a6af2117da788af1502c29bec02 | |
parent | 5cb2d02ad3fee1668da8b21b57123b1c0daa17ee (diff) | |
download | bind-66f11969cffe3ff605a7f4e887f7e654c52b7499.tar.gz bind-66f11969cffe3ff605a7f4e887f7e654c52b7499.tar.xz bind-66f11969cffe3ff605a7f4e887f7e654c52b7499.zip |
fix for Bind Init Script does not create the PID file always, work in
progress version
-rw-r--r-- | bind.spec | 6 | ||||
-rwxr-xr-x | named.init | 10 |
2 files changed, 15 insertions, 1 deletions
@@ -18,7 +18,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv Name: bind License: BSD-like Version: 9.3.3 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 30 Url: http://www.isc.org/products/BIND/ Buildroot: %{_tmppath}/%{name}-root @@ -782,6 +782,10 @@ rm -rf ${RPM_BUILD_ROOT} :; %changelog +* Thu Oct 5 2006 Martin Stransky <stransky@redhat.com> - 30:9.3.3-3 +- added fix from #209400 - Bind Init Script does not create + the PID file always, created by Jeff Means + * Mon Oct 2 2006 Martin Stransky <stransky@redhat.com> - 30:9.3.3-2 - removed chcon from post script, replaced by restorecon (Bug 202547, comment no. 37) @@ -162,6 +162,16 @@ start() { ln -s $ROOTDIR/var/run/named/named.pid /var/run/named_sdb.pid; fi; fi; + if [ -n "`/sbin/pidof -o %PPID $named`" ]; then + # Verify that named actually started (JM 2006-10-04) + if [ ! -e $ROOTDIR/var/run/named/named.pid ]; then + # If there is not a file containing the PID of the now running named daemon then create it (JM 2006-10-04) + echo `/sbin/pidof -o %PPID $named` > $ROOTDIR/var/run/named/named.pid; + if [ "$named" = "named_sdb" ]; then + echo `/sbin/pidof -o %PPID $named` > $ROOTDIR/var/run/named/named_sdb.pid; + fi; + fi; + fi; else named_err="`/usr/sbin/named-checkconf $ckcf_options $named_conf 2>&1`"; echo |