[bind] - added tmpfiles.d support (#656550) - removed old PID checking in initscript
Jan Görig
jgorig at fedoraproject.org
Mon Nov 29 13:26:07 UTC 2010
commit 79e5ad687ff94b52da6dfd17318d4fb3cd645870
Author: Jan Görig <jgorig at redhat.com>
Date: Mon Nov 29 14:22:41 2010 +0100
- added tmpfiles.d support (#656550)
- removed old PID checking in initscript
bind.spec | 12 +++++++++++-
bind.tmpfiles.d | 1 +
named.init | 7 -------
3 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/bind.spec b/bind.spec
index f476409..9c2c5b0 100644
--- a/bind.spec
+++ b/bind.spec
@@ -22,7 +22,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: ISC
Version: 9.7.2
-Release: 6.%{PATCHVER}%{?dist}
+Release: 7.%{PATCHVER}%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -43,6 +43,7 @@ Source31: ldap2zone.1
Source32: named-sdb.8
Source33: zonetodb.1
Source34: zone2sqlite.1
+Source35: bind.tmpfiles.d
# Common patches
Patch5: bind-nonexec.patch
@@ -78,6 +79,7 @@ Patch94: bind95-rh461409.patch
#
Requires: mktemp
+Requires: systemd-units
Requires(post): grep, chkconfig
Requires(pre): shadow-utils
Requires(preun):chkconfig
@@ -458,6 +460,9 @@ for f in my.internal.zone.db slaves/my.slave.internal.zone.db slaves/my.ddns.int
done
:;
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/tmpfiles.d
+install -m 644 %{SOURCE35} ${RPM_BUILD_ROOT}%{_sysconfdir}/tmpfiles.d/named.conf
+
%pre
if [ "$1" -eq 1 ]; then
/usr/sbin/groupadd -g %{bind_gid} -f -r named >/dev/null 2>&1 || :;
@@ -601,6 +606,7 @@ rm -rf ${RPM_BUILD_ROOT}
%config(noreplace) %{_sysconfdir}/sysconfig/named
%config(noreplace) %attr(-,root,named) %{_sysconfdir}/named.iscdlv.key
%config(noreplace) %attr(-,root,named) %{_sysconfdir}/named.root.key
+%{_sysconfdir}/tmpfiles.d/named.conf
%{_sysconfdir}/rc.d/init.d/named
%{_sysconfdir}/NetworkManager/dispatcher.d/13-named
%{_sbindir}/arpaname
@@ -758,6 +764,10 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
+* Mon Nov 29 2010 Jan Görig <jgorig redhat com> 32:9.7.2-7.P2
+- added tmpfiles.d support (#656550)
+- removed old PID checking in initscript
+
* Mon Nov 08 2010 Adam Tkac <atkac redhat com> 32:9.7.2-6.P2
- don't emit various informational messages by default (#645544)
diff --git a/bind.tmpfiles.d b/bind.tmpfiles.d
new file mode 100644
index 0000000..8a7fa49
--- /dev/null
+++ b/bind.tmpfiles.d
@@ -0,0 +1 @@
+d /var/run/named 0755 named named -
diff --git a/named.init b/named.init
index 0af938b..f567c07 100755
--- a/named.init
+++ b/named.init
@@ -143,13 +143,6 @@ start()
ln -s $ROOTDIR/var/run/named/"$named".pid /var/run/"$named".pid;
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;
- fi;
- fi;
else
named_err="`/usr/sbin/named-checkconf $ckcf_options $named_conf 2>&1`";
echo
More information about the scm-commits
mailing list