#!/bin/sh
#
# $FreeBSD: head/net/ssltunnel-server/files/ssltunnel.in 338025 2013-12-29 16:29:03Z crees $
#
# PROVIDE: ssltunnel
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# To enable ssltunnel, add the following line to rc.conf:
#	ssltunnel_enable=yes

. /etc/rc.subr

name=ssltunnel
rcvar=ssltunnel_enable

load_rc_config ssltunnel

: ${ssltunnel_enable:=yes}

command="/usr/local/libexec/pppserver"
command_args="/usr/local/etc/ssltunnel/tunnel.conf"
required_files="/usr/local/etc/ssltunnel/tunnel.conf"
pidfile=/var/run/pppserver.pid

run_rc_command $1
