aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dhcp-probe/dhcp-probe.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/dhcp-probe/dhcp-probe.initd')
-rw-r--r--testing/dhcp-probe/dhcp-probe.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/dhcp-probe/dhcp-probe.initd b/testing/dhcp-probe/dhcp-probe.initd
new file mode 100644
index 0000000000..ba08560b38
--- /dev/null
+++ b/testing/dhcp-probe/dhcp-probe.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use syslog
+
+}
+
+start() {
+ ebegin "Starting DHCP Probe"
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --pidfile /var/run/dhcp_probe.pid --exec /usr/sbin/dhcp_probe \
+ -- $PARAMS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DHCP Probe"
+ start-stop-daemon --stop --quiet --pidfile /var/run/dhcp_probe.pid
+ eend $?
+}