spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spamass-milter Redhat Service


From: Jason Granat
Subject: Re: Spamass-milter Redhat Service
Date: Tue, 03 Jun 2003 11:26:18 -0700

I thought is was a service control for the "service" command.  That's why it's 
got the
"start|stop|reload|restart|condrestart|status" options.  All the options work 
except
"start|reload|condrestart".  Starting by hand works fine.

Chuck Yerkes wrote:

> It's a shell script (the startup).
> What happens when you run "sh -x $SCRIPT"?
>
> What happens when you start the binary by hand?
>
> (replies to the list, please).
>
> Quoting Jason Granat (address@hidden):
> > Hello,
> >
> > I tried using the contrib'd Redhat service and it shuts down and gives me 
> > status
> > for spamass-milter but when I try a service spamass-milter start I get:
> >
> > Starting spamass-milter: execvp: No such file or directory
> >
> > I check the file and can't find any files/directories that don't exist.  Is 
> > it
> > broken?  The contents are below:
> >
> > #!/bin/sh
> > #
> > # $Id: spamass-milter-redhat.rc,v 1.2 2002/08/19 20:39:42 dnelson Exp $
> > #
> > # spamass-milter This script starts and stops the spamass-milter daemon
> > #
> > # chkconfig: 2345 80 30
> > #
> > # description: spamass-milter is a daemon which hooks into sendmail and 
> > routes
> > #              email messages to spamassassin
> > # processname: spamass-milter
> >
> >
> > # Source function library.
> > . /etc/rc.d/init.d/functions
> >
> > # Source networking configuration.
> > . /etc/sysconfig/network
> >
> > # Local spamass-milter config
> > SM_SOCKET=/var/run/spamassassin/spamass.sock
> > SM_EXTRA_FLAGS=
> > [ -x /etc/sysconfig/spamass-milter ] && . /etc/sysconfig/spamass-milter
> >
> > # Check that networking is up.
> > [ ${NETWORKING} = "no" ] && exit 0
> >
> > [ -x /usr/local/sbin/spamass-milter ] || exit 0
> > PATH=$PATH:/usr/bin:/usr/local/bin
> >
> > RETVAL=0
> >
> > start() {
> >         echo -n "Starting spamass-milter: "
> >         daemon spamass-milter -p ${SM_SOCKET} -f ${SM_EXTRA_FLAGS}
> >         RETVAL=$?
> >         echo
> >         test $RETVAL -eq 0 && touch /var/lock/subsys/spamass-milter
> >         return $RETVAL
> > }
> >
> > stop() {
> >         echo -n "Shutting down spamass-milter: "
> >         killproc spamass-milter
> >         RETVAL=$?
> >         echo
> >         test $RETVAL -eq 0 && rm -f /var/lock/subsys/spamass-milter
> > }
> >
> > restart() {
> >         stop
> >         start
> > }
> >
> > # See how we were called.
> > case "$1" in
> >   start)
> >         # Start daemon.
> >         start
> >         ;;
> >   stop)
> >         # Stop daemon.
> >         stop
> >         ;;
> >   restart|reload)
> >         restart
> >         ;;
> >   condrestart)
> >         test -f /var/lock/subsys/spamass-milter && $0 restart || :
> >         ;;
> >   status)
> >         status spamass-milter
> >         ;;
> >   *)
> >         echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"
> >         exit 1
> > esac
> >
> > exit $?
> >
> >
> >
> >
> > _______________________________________________
> > Spamass-milt-list mailing list
> > address@hidden
> > http://mail.nongnu.org/mailman/listinfo/spamass-milt-list






reply via email to

[Prev in Thread] Current Thread [Next in Thread]