Last active
February 17, 2017 03:32
-
-
Save smartjj/68da201f83094eb425b8c5840de7f457 to your computer and use it in GitHub Desktop.
SoftEther vpnserver for FreeBSD 10.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $FreeBSD: branches/2017Q1/net/softethervpn/files/vpnserver.in 426359 2016-11-19 11:45:14Z hrs $ | |
# | |
# PROVIDE: vpnserver | |
# REQUIRE: LOGIN | |
# | |
. /etc/rc.subr | |
name=vpnserver | |
rcvar=${name}_enable | |
command=/root/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment