2011-01-03 10:48:06 +00:00
|
|
|
description "dhcp Daemon (Dynamic host configuration) startup"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
|
|
|
|
|
|
|
start on (runlevel [2345] and (started rpc))
|
|
|
|
stop on runlevel [016]
|
|
|
|
|
2011-08-19 07:01:46 +00:00
|
|
|
pre-start script
|
|
|
|
/sbin/CheckPid /var/run/dhcpd.pid
|
|
|
|
exit $?
|
2011-01-03 10:48:06 +00:00
|
|
|
console none
|
|
|
|
|
|
|
|
script
|
|
|
|
if [ -f /etc/sysconfig/dhcp/dhcpd.conf ]; then
|
|
|
|
/sbin/dhcpd -q -cf /etc/sysconfig/dhcp/dhcpd.conf -f
|
|
|
|
fi
|
|
|
|
end script
|