>> 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
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/