# Required-Start: $remote_fs $syslog amavisd-new
# Required-Stop: $remote_fs $syslog
# Short-Description: Startup script for amavis master supervisor
# Description: This script starts the amavis supervisor for amavis
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="amavis services supervisor"
DAEMON_ARGS="-P /var/run/amavis/$NAME.pid"
PIDFILE=/var/run/amavis/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions
if [ "${ENABLED}" != "yes" ]; then
log_warning_msg "Not starting ${NAME} - edit
/etc/default/${NAME} to enable it"