diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-22 14:25:26 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-22 14:25:30 +0000 |
commit | 3a8569ea7a6921ac91005a597112bcb93633595e (patch) | |
tree | f612aa7538a056b83e6d54cddec5e1ae5f530137 /community/dhcp-probe/dhcp-probe.initd | |
parent | 05109abdf679143e4e76250ad4fa3b183d36f5b1 (diff) | |
download | aports-3a8569ea7a6921ac91005a597112bcb93633595e.tar.bz2 aports-3a8569ea7a6921ac91005a597112bcb93633595e.tar.xz |
community/dhcp-probe: moved from testing
Diffstat (limited to 'community/dhcp-probe/dhcp-probe.initd')
-rw-r--r-- | community/dhcp-probe/dhcp-probe.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/dhcp-probe/dhcp-probe.initd b/community/dhcp-probe/dhcp-probe.initd new file mode 100644 index 0000000000..e5a596414d --- /dev/null +++ b/community/dhcp-probe/dhcp-probe.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +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 $? +} |