#!/bin/sh # # PROVIDE: barnyard # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable barnyard: # barnyard_enable (bool): Set to YES to enable barnyard # Default: NO # barnyard_flags (str): Extra flags passed to barnyard # Default: -D # barnyard_conf (str): Barnyard configuration file # Default: %%PREFIX%%/etc/barnyard.conf # # Usage: barnyard [OPTIONS]... (continual mode) # or: barnyard -o [OPTIONS]... FILES... (batch mode) # Information Options: # -h Show this help information # -? Show this help information # -V Show version and exit # -R Display processed configuration and exit # General Configuration Options: # -c Use configuration file # -d Read spool files from # -L Write output files in # -v Increase the verbosity level by 1 # -s Read the sid-msg map from # -g Read the gen-msg map from # -p Read the classification map from # Continual Processing Mode Options: # -a Archive processed files to # -f Use as the base unified filename # -n Only process new events # -w Enable bookmarking using # -D Run in daemon mode # -X Use as the pid file # Batch Processing Mode Options: # -o Enable batch processing mode . /etc/rc.subr name="barnyard" load_rc_config $name rcvar=`set_rcvar` # set some defaults : ${barnyard_enable="NO"} : ${barnyard_conf="%%PREFIX%%/etc/barnyard.conf"} : ${barnyard_flags="-D"} command="%%PREFIX%%/bin/barnyard" command_args="-c ${barnyard_conf}" run_rc_command "$1"