#!/bin/sh # PROVIDE: ggated # REQUIRE: root # BEFORE: mountcritlocal #Copyright (C) 2010, Tom Judge # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # wrote this file. As long as you retain this notice you # can do whatever you want with this stuff. If we meet some day, and you think # this stuff is worth it, you can buy me a beer in return Tom Judge. # ---------------------------------------------------------------------------- #ggated_enable="YES" # . "/etc/rc.subr" name="ggated" rcvar=`set_rcvar` required_files="/etc/gg.exports" # read configuration and set defaults load_rc_config "$name" : ${ggated_enable="NO"} : ${ggated_ip="127.0.0.1"} : ${ggated_buf_size="1048576"} start_cmd=${name}_start stop_cmd=${name}_stop ggated_start() { /sbin/ggated -S ${ggated_buf_size} \ -R ${ggated_buf_size} \ -a ${ggated_ip} \ /etc/gg.exports } ggated_stop() { /usr/bin/killall ggated } run_rc_command "$1"