From 9d525b2d2be863f36a575c203d45d59ed8a5246e Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 15 Nov 2007 18:35:58 +0000 Subject: [PATCH] - Fix chkconfig lines in dhcpd and dhcrelay init scripts (#384431) - Improve postun scriptlet --- dhcp.spec | 4 ++++ dhcpd.init | 2 +- dhcrelay.init | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index a5fb450..c476f37 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -355,6 +355,10 @@ done %clean %{__rm} -rf %{buildroot} +%post +/sbin/chkconfig --add dhcpd +/sbin/chkconfig --add dhcrelay + %preun if [ $1 = 0 ]; then /sbin/service dhcpd status >/dev/null 2>&1 diff --git a/dhcpd.init b/dhcpd.init index ef08499..a2a9049 100644 --- a/dhcpd.init +++ b/dhcpd.init @@ -14,7 +14,7 @@ # # The fields below are left around for legacy tools (will remove later). # -# chkconfig: - +# chkconfig: - 65 35 # description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP) \ # server # processname: dhcpd diff --git a/dhcrelay.init b/dhcrelay.init index 51f047e..27aaebf 100644 --- a/dhcrelay.init +++ b/dhcrelay.init @@ -15,7 +15,7 @@ # # The fields below are left around for legacy tools (will remove later). # -# chkconfig: - +# chkconfig: - 65 35 # description: dhcrelay provides a relay for Dynamic Host Control Protocol. # processname: dhcrelay # # pidfile: /var/run/dhcrelay.pid