- Fix chkconfig lines in dhcpd and dhcrelay init scripts (#384431)
- Improve postun scriptlet
This commit is contained in:
parent
cacf8c13fa
commit
9d525b2d2b
@ -355,6 +355,10 @@ done
|
|||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/chkconfig --add dhcpd
|
||||||
|
/sbin/chkconfig --add dhcrelay
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/service dhcpd status >/dev/null 2>&1
|
/sbin/service dhcpd status >/dev/null 2>&1
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#
|
#
|
||||||
# The fields below are left around for legacy tools (will remove later).
|
# 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) \
|
# description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP) \
|
||||||
# server
|
# server
|
||||||
# processname: dhcpd
|
# processname: dhcpd
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#
|
#
|
||||||
# The fields below are left around for legacy tools (will remove later).
|
# 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.
|
# description: dhcrelay provides a relay for Dynamic Host Control Protocol.
|
||||||
# processname: dhcrelay
|
# processname: dhcrelay
|
||||||
# # pidfile: /var/run/dhcrelay.pid
|
# # pidfile: /var/run/dhcrelay.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user