1*c0686329SAlan Somers#!/bin/sh 2*c0686329SAlan Somers 3*c0686329SAlan Somers# PROVIDE: ggated 4*c0686329SAlan Somers# REQUIRE: NETWORKING 5*c0686329SAlan Somers 6*c0686329SAlan Somers. /etc/rc.subr 7*c0686329SAlan Somers 8*c0686329SAlan Somersname="ggated" 9*c0686329SAlan Somersdesc="GEOM Gate network daemon" 10*c0686329SAlan Somersrcvar="ggated_enable" 11*c0686329SAlan Somerscommand="/sbin/${name}" 12*c0686329SAlan Somerspidfile="/var/run/${name}.pid" 13*c0686329SAlan Somers 14*c0686329SAlan Somersload_rc_config $name 15*c0686329SAlan Somersparams="${ggated_params}" 16*c0686329SAlan Somersconfig="${ggated_config:-/etc/gg.exports}" 17*c0686329SAlan Somersrequired_files="${config}" 18*c0686329SAlan Somers 19*c0686329SAlan Somerscommand_args="${params} ${config}" 20*c0686329SAlan Somers 21*c0686329SAlan Somersrun_rc_command "$1" 22