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