#!/bin/sh
#
# $FreeBSD: branches/2018Q3/net/vtun/files/vtund.in 340872 2014-01-24 00:14:07Z mat $
#
# PROVIDE: vtund
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable vtund:
#
# vtund_enable="YES"
#

vtund_enable=${vtund_enable:-"NO"}
vtund_flags=${vtund_flags:-"-s"}

. /etc/rc.subr

name=vtund
rcvar=vtund_enable
required_files="/usr/local/etc/vtund.conf"
pidfile=/var/run/vtund.pid

command=/usr/local/sbin/vtund

load_rc_config $name
run_rc_command "$1"
