#!/bin/sh #dhcpd des systemvinit prozesses #(c) Rainmaker MultiMedia OHG # #$Author$ #$Date$ #$Revision$ # #$Log$ #Revision 1.6 2002/02/13 15:18:42 hkueller #Restart Funktion hinzugefügt. Syntax ausgabe korrigiert # #Revision 1.5 2002/02/05 03:02:02 hkueller #startproc und killproc funktionieren mit dhcpd nicht. Script entsprechend #geaendert # #Revision 1.4 2002/02/05 02:46:35 hkueller #Copyright Meldung beim Start wird nun unterdrückt. Landet alles im Log # #Revision 1.3 2001/09/23 16:59:54 kueller #Pfadangabe für Configfile bei dhcpd start falsch # #Revision 1.2 2001/09/23 16:56:07 kueller #dhcpd.conf muß in /etc/sysconfig/dhcp liegen # #Revision 1.1 2001/09/23 16:52:40 kueller #dhcp Server Start/Stop hinzugefügt # # # source /etc/init.d/functions case "$1" in start) if [ -f /etc/sysconfig/dhcp/dhcpd.conf ]; then echo -n "Starting dhcpd" /usr/sbin/dhcpd -q -cf /etc/sysconfig/dhcp/dhcpd.conf evaluate_retval fi ;; stop) if [ -f /etc/sysconfig/dhcp/dhcpd.conf ]; then echo -n "Stopping dhcpd" kill `cat /var/run/dhcpd.pid` evaluate_retval fi ;; restart) $0 stop /usr/bin/sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac