freebsd-ports/net/vtun/files/vtund.in
2021-04-06 16:31:13 +02:00

25 lines
410 B
Bash

#!/bin/sh
# 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="%%PREFIX%%/etc/vtund.conf"
pidfile=/var/run/vtund.pid
command=%%PREFIX%%/sbin/vtund
load_rc_config $name
run_rc_command "$1"