>> Hi,
>> Thanks. What modifications are required? I commented functions line but
now it is giving error on other lines. 
>> MJ

Something like this should do (I don't have a Solaris system in front of me,
but made similar changes previously)

#!/bin/sh
#
# amavisd       This script controls the amavisd-new daemon.
#               (to be used with version amavisd-new-20020630 or later)
#

# description: amavisd is an interface between MTA and content checkers
# processname: amavisd
# pidfile: /var/amavis/amavisd.pid

prog="/usr/local/sbin/amavisd"
prog_base="$(basename ${prog})"

prog_config_file="/etc/amavisd.conf"

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo $"Starting ${prog_base}:" ${prog} -c ${prog_config_file}
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${prog_base}
        echo
        ;;
  stop)
        echo $"Shutting down ${prog_base}:" ${prog} -c ${prog_config_file}
stop
        RETVAL=$?
        if [ $RETVAL -eq 0 ] ; then
                echo "${prog_base} stopped"
                rm -f /var/lock/subsys/${prog_base}
        else
                echo
        fi
        ;;
  restart)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  reload)
        echo $"Reloading ${prog_base}:" ${prog} -c ${prog_config_file}
reload
        RETVAL=$?
        ;;
  *)
        echo "Usage: $0 {start|stop|status|restart|reload}"
        exit 1
esac

exit $RETVAL




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to