diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-08-24 16:16:20 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-08-24 16:16:20 +0000 |
commit | b1a6eabbae6254aa301adc64bc367ab333a5f073 (patch) | |
tree | 62f59dbf3fac731b1a7a22eb2685e37a0689c20a /testing/dhcp-probe/dhcp-probe.initd | |
parent | 0dee35fcb6a50b1e519b8926db2975251604498d (diff) | |
download | aports-b1a6eabbae6254aa301adc64bc367ab333a5f073.tar.bz2 aports-b1a6eabbae6254aa301adc64bc367ab333a5f073.tar.xz |
testing/dhcp-probe: added initd and confd files
Diffstat (limited to 'testing/dhcp-probe/dhcp-probe.initd')
-rw-r--r-- | testing/dhcp-probe/dhcp-probe.initd | 21 |
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 $? +} |