#!/bin/sh # # $FreeBSD$ # # PROVIDE: netams # REQUIRE: NETWORKING # 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 # . %%RC_SUBR%% name="netams" rcvar=`set_rcvar` load_rc_config $name : ${netams_enable="NO"} : ${netams_config="%%PREFIX%%/etc/netams.cfg"} pidfile="/var/run/netams.pid" command="%%PREFIX%%/libexec/netams" command_args="-lf ${netams_config} > /dev/null &" run_rc_command "$1"