#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: PID=/var/run/fwlogwatch.pid source /etc/conf.d/fwlogwatch depend() { after net } start() { ebegin "Starting fwlogwatch" if [[ -z $REALTIME_OPTIONS ]]; then REALTIME_OPTIONS="" fi; if [[ -n $TIME_TO_FORGET ]] then REALTIME_OPTIONS=$REALTIME_OPTIONS' -l'$TIME_TO_FORGET fi; if [[ -n $ALERT_THRESHOLD ]]; then REALTIME_OPTIONS=$REALTIME_OPTIONS' -a'$ALERT_THRESHOLD fi; if [[ -n $REALTIME_RESPOND=='yes' ]]; then REALTIME_OPTIONS=$REALTIME_OPTIONS' -B' fi; if [[ -n $REALTIME_NOTIFY=='yes' ]]; then REALTIME_OPTIONS=$REALTIME_OPTIONS' -A' fi; if [[ -z $CONFIG ]]; then logger 'fwlogwatch daemon ERROR: $CONFIG in /etc/conf.d/fwlogwatch must be set' exit 1 fi; start-stop-daemon --start -m --quiet --background --pidfile $PID --exec $FWLW -- " -R $REALTIME_OPTIONS -c $CONFIG $WATCH_LOG" eend ${?} } stop() { ebegin "Stopping fwlogwatch" start-stop-daemon --stop --pidfile $PID eend ${?} }