Commit aacc77eb authored by Mike Hibler's avatar Mike Hibler
Browse files

Wrap dhcpd and batch_daemon with the new daemon_wrapper

parent e61f8394
......@@ -4,9 +4,10 @@
#
case "$1" in
start)
if [ -x @prefix@/sbin/dhcpd_wrapper ]; then
echo -n " dhcpd_wrapper"
@prefix@/sbin/dhcpd_wrapper
if [ -x @prefix@/sbin/daemon_wrapper ]; then
echo -n " dhcpd wrapper"
@prefix@/sbin/daemon_wrapper \
/usr/local/sbin/dhcpd -f
fi
;;
stop)
......
......@@ -96,8 +96,14 @@ case "$1" in
# else is setup first; i.e., run this last!
#
if [ -x @prefix@/sbin/batch_daemon ]; then
echo -n " batchd"
@prefix@/sbin/batch_daemon
echo -n " batchd wrapper "
if [ -x @prefix@/sbin/daemon_wrapper ]; then
@prefix@/sbin/daemon_wrapper \
-i 30 -l @prefix@/log/batchlog \
@prefix@/sbin/batch_daemon -d
else
@prefix@/sbin/batch_daemon
fi
fi
;;
stop)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment