--- spampd-rh-rc-script.orig Fri Mar 7 15:14:20 2003 +++ spampd-rh-rc-script Fri Mar 7 15:37:12 2003 @@ -19,12 +19,21 @@ [ -f /usr/bin/spampd -o -f /usr/local/bin/spampd ] || exit 0 PATH=$PATH:/usr/bin:/usr/local/bin +if [ -f /etc/sysconfig/spampd ] ; then + . /etc/sysconfig/spampd +fi + +#If the above config file doesn't exist, or exists but doesn't set this option, set an intelligent default. +if [ -z "$SPAMPD_OPTIONS" ]; then + SPAMPD_OPTIONS="--port=10025 --relayhost=127.0.0.1:25 --tagall --auto-whitelist" +fi + # See how we were called. case "$1" in start) # Start daemon. echo -n "Starting spampd: " - daemon spampd --port=10025 --relayhost=127.0.0.1:25 --tagall --auto-whitelist + daemon spampd $SPAMPD_OPTIONS RETVAL=$? touch /var/lock/spampd echo