forked from Lainports/freebsd-ports
25 lines
410 B
Bash
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"
|