Skip to content

Instantly share code, notes, and snippets.

@smartjj
Last active February 17, 2017 03:32
Show Gist options
  • Save smartjj/68da201f83094eb425b8c5840de7f457 to your computer and use it in GitHub Desktop.
Save smartjj/68da201f83094eb425b8c5840de7f457 to your computer and use it in GitHub Desktop.
SoftEther vpnserver for FreeBSD 10.3
#!/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