#!/bin/sh # # $FreeBSD: ports/net-mgmt/netams/files/netams.in,v 1.3 2007/07/08 12:41:41 rafan Exp $ # # PROVIDE: netams # REQUIRE: NETWORKING ldconfig # KEYWORD: shutdown # Define these netams_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/netams # # netams_enable (bool): Set to "NO" by default. # Set it to "YES" to enable netams. # netams_config (str): Custom configuration file to be passed # to netams. # # DO NOT CHANGE THESE DEFAULT VALUES HERE # . /etc/rc.subr name="netams" rcvar=`set_rcvar` load_rc_config $name : ${netams_enable="NO"} : ${netams_config="/usr/local/etc/netams.cfg"} pidfile="/var/run/netams.pid" command="/usr/local/libexec/netams" command_args="-lf ${netams_config} > /dev/null &" run_rc_command "$1"