added ikev2/dhcp-static-client-id scenario
[strongswan.git] / testing / tests / ikev2 / dhcp-static-client-id / hosts / venus / etc / init.d / dhcpd
1 #!/sbin/runscript
2 # Copyright 1999-2004 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 opts="start stop"
6
7 depend() {
8         need net
9         need logger
10 }
11
12 start() {
13         ebegin "Starting DHCP server"
14         start-stop-daemon --start --quiet --exec /usr/sbin/dhcpd
15         eend $?
16 }
17
18 stop() {
19         ebegin "Stopping DHCP server"
20         start-stop-daemon --stop --quiet --pidfile /var/run/dhcpd.pid
21         rm -f /var/state/dhcp/dhcpd.leases
22         touch /var/state/dhcp/dhcpd.leases
23         eend $?
24 }