summaryrefslogtreecommitdiff
path: root/dhcp-forwarder
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /dhcp-forwarder
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'dhcp-forwarder')
-rw-r--r--dhcp-forwarder/files/dhcp-fwd.cfg3
-rw-r--r--dhcp-forwarder/files/init25
2 files changed, 28 insertions, 0 deletions
diff --git a/dhcp-forwarder/files/dhcp-fwd.cfg b/dhcp-forwarder/files/dhcp-fwd.cfg
index e69de29bb2..5977542cd4 100644
--- a/dhcp-forwarder/files/dhcp-fwd.cfg
+++ b/dhcp-forwarder/files/dhcp-fwd.cfg
@@ -0,0 +1,3 @@
+chroot /
+logfile /var/log/dhcp-fwd.log
+pidfile /var/run/dhcp-fwd.pid
diff --git a/dhcp-forwarder/files/init b/dhcp-forwarder/files/init
index e69de29bb2..0a65c8c4a9 100644
--- a/dhcp-forwarder/files/init
+++ b/dhcp-forwarder/files/init
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+#$Header$
+
+CONFFILE=/etc/dhcp-fwd.cfg
+DAEMON=/usr/sbin/dhcp-fwd
+
+case "$1" in
+ start)
+ start-stop-daemon -S -x $DAEMON -- -c $CONFFILE
+ ;;
+ stop)
+ start-stop-daemon -K -x $DAEMON
+ ;;
+ restart | force-reload)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|force-reload}"
+ exit 1
+esac
+
+exit 0