auto-import changelog data from dhcp-3.0.1rc12-4.src.rpm
3.0.1rc12-4 - Fix init to check config during restart 3.0.1rc12-3 - Fix init script to create leases file if missing
This commit is contained in:
parent
f57f26432f
commit
37d2807ff3
@ -2,7 +2,7 @@ Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
|||||||
Name: dhcp
|
Name: dhcp
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 3.0.1rc12
|
Version: 3.0.1rc12
|
||||||
Release: 2.1
|
Release: 4
|
||||||
Copyright: distributable
|
Copyright: distributable
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
Source0: ftp://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
||||||
@ -190,6 +190,12 @@ fi
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 25 2004 Dan Walsh <dwalsh@redhat.com> 1:3.0.1rc12-4
|
||||||
|
- Fix init to check config during restart
|
||||||
|
|
||||||
|
* Wed Mar 24 2004 Dan Walsh <dwalsh@redhat.com> 1:3.0.1rc12-3
|
||||||
|
- Fix init script to create leases file if missing
|
||||||
|
|
||||||
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
20
dhcpd.init
20
dhcpd.init
@ -18,11 +18,26 @@
|
|||||||
|
|
||||||
[ -f /usr/sbin/dhcpd ] || exit 0
|
[ -f /usr/sbin/dhcpd ] || exit 0
|
||||||
[ -f /etc/dhcpd.conf ] || exit 0
|
[ -f /etc/dhcpd.conf ] || exit 0
|
||||||
[ -f /var/lib/dhcp/dhcpd.leases ] || exit 0
|
[ -f /var/lib/dhcp/dhcpd.leases ] || touch /var/lib/dhcp/dhcpd.leases
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
prog="dhcpd"
|
prog="dhcpd"
|
||||||
|
|
||||||
|
configtest()
|
||||||
|
{
|
||||||
|
local retval TEMP=/tmp/dhcpd$$.err
|
||||||
|
|
||||||
|
/usr/sbin/dhcpd -t 2>$TEMP
|
||||||
|
retval=$?
|
||||||
|
if [ $retval -ne 0 ]
|
||||||
|
then
|
||||||
|
cat $TEMP
|
||||||
|
rm -f $TEMP
|
||||||
|
fi
|
||||||
|
|
||||||
|
return $retval
|
||||||
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
# Start daemons.
|
# Start daemons.
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
@ -52,6 +67,7 @@ case "$1" in
|
|||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
restart|reload)
|
restart|reload)
|
||||||
|
configtest || exit $?
|
||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
@ -64,7 +80,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
configtest)
|
configtest)
|
||||||
dhcpd -t
|
configtest
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
|
Loading…
Reference in New Issue
Block a user