1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#!/bin/sh # # $FreeBSD$ # # PROVIDE: vpnserver # REQUIRE: LOGIN # . /etc/rc.subr name=vpnserver rcvar=${name}_enable command=%%PREFIX%%/sbin/${name} start_cmd="${name}_start" stop_cmd="${name}_stop" vpnserver_start() { $command start } vpnserver_stop() { $command stop } load_rc_config $name : ${vpnserver_enable:=NO} run_rc_command "$1"