Thanks for your help. Now it is working.
MJ
-----Original Message-----
From: Mike Cappella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 07, 2005 8:07 PM
To: 'MJ'
Subject: RE: [AMaViS-user] Starting amavis at system startup
"/etc/init.d/functions: not found"

I'm sorry, here's the update.  I had changed a function call to "echo"
which
both echo its output then ran the program, but that of course would not
run
the program.

This should fix:
-----------


#!/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}
        ${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
        ${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

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MJ
Sent: Tuesday, June 07, 2005 9:17 AM
To: 'Mike Cappella'
Cc: [email protected]
Subject: RE: [AMaViS-user] Starting amavis at system startup
"/etc/init.d/functions: not found"

Initially it was giving error for the directory /var/lock/subsystems,
then I
created the directory. Now it is not giving any error but still it is
not
running.

MJ




-------------------------------------------------------
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/




-------------------------------------------------------
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/

Reply via email to