dhcp/dhcpd.init

147 lines
2.9 KiB
Plaintext
Raw Normal View History

#!/bin/sh
#
### BEGIN INIT INFO
# Provides: dhcpd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Should-Start:
# Required-Start: $network
# Required-Stop:
# Short-Description: Start and stop the DHCP server
# Description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP)
# server.
### END INIT INFO
#
# The fields below are left around for legacy tools (will remove later).
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
#
# chkconfig: - 65 35
# description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP) \
# server
# processname: dhcpd
# config: /etc/dhcpd.conf
# config: /var/lib/dhcpd/dhcpd.leases
# pidfile: /var/run/dhcpd.pid
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
. /etc/init.d/functions
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
RETVAL=0
prog=dhcpd
dhcpd=/usr/sbin/dhcpd
lockfile=/var/lock/subsys/dhcpd
pidfile=/var/run/dhcpd.pid
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
[ -f /etc/sysconfig/dhcpd ] && . /etc/sysconfig/dhcpd
# if the user specified a different config file, make sure we reference it
findConfig() {
for arg in $DHCPDARGS ; do
if [ "$found" = 1 ]; then
[ -f "$arg" ] && echo "$arg"
return
fi
if [ "$arg" = "-cf" ]; then
found=1
continue
fi
done
echo "/etc/dhcpd.conf"
}
conf="$(findConfig "$DHCPDARGS")"
if [ ! -f /var/lib/dhcpd/dhcpd.leases ] ; then
mkdir -p /var/lib/dhcpd
touch /var/lib/dhcpd/dhcpd.leases
[ -x /sbin/restorecon ] && [ -d /selinux ] && /sbin/restorecon /var/lib/dhcp/dhcpd.leases >/dev/null 2>&1
fi
configtest() {
[ -x $dhcpd ] || return 5
[ -f $conf ] || return 6
$dhcpd -q -t -cf $conf
RETVAL=$?
return $RETVAL
}
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
start() {
[ -x $dhcpd ] || return 5
[ -f $conf ] || return 6
pidofproc $prog >/dev/null 2>&1
RETVAL=$?
[ $RETVAL -eq 0 ] && return $RETVAL
echo -n $"Starting $prog: "
daemon $dhcpd $DHCPDARGS 2>/dev/null
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch $lockfile
return $RETVAL
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
}
stop() {
pidofproc $prog >/dev/null 2>&1
if [ $? -ne 0 ]; then
RETVAL=7
return $RETVAL
fi
echo -n $"Shutting down $prog: "
killproc $prog
RETVAL=$?
[ $RETVAL = 0 ] && success || failure
echo
[ $RETVAL = 0 ] && rm -f $lockfile
return $RETVAL
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
}
if [ ! -x $dhcdbd ]; then
RETVAL=5
exit $RETVAL
fi
if [ $# -gt 1 ]; then
RETVAL=2
exit $RETVAL
fi
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
case "$1" in
start)
start
RETVAL=$?
;;
stop)
stop
RETVAL=$?
;;
restart|force-reload)
stop && start
RETVAL=$?
;;
try-restart|reload)
RETVAL=3
;;
condrestart)
if [ -f $lockfile ]; then
stop && start
RETVAL=$?
fi
;;
configtest)
configtest
RETVAL=$?
;;
status)
status $dhcpd
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|configtest|status}"
RETVAL=3
;;
auto-import changelog data from dhcp-2.0-12.src.rpm Wed Aug 30 2000 Matt Wilson <msw@redhat.com> - rebuild to cope with glibc locale binary incompatibility, again Mon Aug 14 2000 Preston Brown <pbrown@redhat.com> - check for existence of /var/lib/dhcpd.leases in initscript before starting Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> - rebuild to cope with glibc locale binary incompatibility Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/rc.d/init.d -> /etc/init.d - fix /var/state/dhcp -> /var/lib/dhcp Fri Jun 16 2000 Preston Brown <pbrown@redhat.com> - condrestart for initscript, graceful upgrades. Thu Feb 03 2000 Erik Troan <ewt@redhat.com> - gzipped man pages - marked /etc/rc.d/init.d/dhcp as a config file Mon Jan 24 2000 Jakub Jelinek <jakub@redhat.com> - fix booting of JavaStations (reported by Pete Zaitcev <zaitcev@metabyte.com>). - fix SIGBUS crashes on SPARC (apparently gcc is too clever). Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0. Fri Jun 18 1999 Bill Nottingham <notting@redhat.com> - don't run by default Wed Jun 02 1999 Jeff Johnson <jbj@redhat.com> - update to 2.0b1pl28. Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> - strip binaries Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com> - copy the source file in %prep, not move Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 4) Mon Jan 11 1999 Erik Troan <ewt@redhat.com> - added a sample dhcpd.conf file - we don't need to dump rfc's in /usr/doc Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> - modify dhcpd.init to exit if /etc/dhcpd.conf is not present Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - Upgraded to 2.0b1pl6 (patch1 no longer needed). Thu Jun 11 1998 Erik Troan <ewt@redhat.com> - applied patch from Chris Evans which makes the server a bit more paranoid about dhcp requests coming in from the wire Mon Jun 01 1998 Erik Troan <ewt@redhat.com> - updated to dhcp 2.0b1pl1 - got proper man pages in the package Tue Mar 31 1998 Erik Troan <ewt@redhat.com> - updated to build in a buildroot properly - don't package up the client, as it doens't work very well <sigh> Tue Mar 17 1998 Bryan C. Andregg <bandregg@redhat.com> - Build rooted and corrected file listing. Mon Mar 16 1998 Mike Wangsmo <wanger@redhat.com> - removed the actual inet.d links (chkconfig takes care of this for us) and made the %postun section handle upgrades. Mon Mar 16 1998 Bryan C. Andregg <bandregg@redhat.com> - First package.
2004-09-09 04:10:47 +00:00
esac
exit $RETVAL