aboutsummaryrefslogtreecommitdiffstats
path: root/community/dhcp-probe/dhcp-probe.initd
blob: e5a596414d1f4846c366f459b9250659e382f31a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $?
}