Update lang/gcc6-devel to version 6.2.1.s20160825
[dports.git] / net / dhcprelay / files / dhcprelay.in
1 #! /bin/sh
2 #
3 # $FreeBSD: head/net/dhcprelay/files/dhcprelay.in 368675 2014-09-20 19:01:46Z marino $
4 #
5 # PROVIDE: dhcprelay
6 # REQUIRE: DAEMON
7 #
8 # Add the following line to /etc/rc.conf to enable dhcrelay:
9 #
10 # dhcprelay_enable="YES"
11 #
12 # dhcprelay_server      dhcprelay server(s)
13 # dhcprelay_ifaces      ethernet interface(s)
14
15 . /etc/rc.subr
16
17 name=dhcprelay
18 rcvar=${name}_enable
19
20 load_rc_config ${name}
21
22 : ${dhcprelay_enable="NO"}
23 : ${dhcprelay_ifaces=""}
24
25 pidfile=/var/run/${name}.pid
26 command=%%PREFIX%%/bin/${name}
27 command_args="${dhcprelay_ifaces} ${dhcprelay_server}"
28
29 run_rc_command "$1"