killproc mailscanner

Craig St George craig at WEBFARM.CO.NZ
Fri Sep 6 01:18:20 IST 2002


Ok it is defiantly a cobalt RAQ thing

when you ue init script and then do a ps awx
it shows
perl /home/opt/MailScanner/bin/mailscanner /home/opt/

so killproc mail scanner does not work nor does status

I just changed init script so to kill  via the PID


# Stop daemons.
         echo    'Shutting down MailScanner daemons:'

         [ -f  /home/opt/MailScanner/var/virus.pid ] && {
             kill `cat  /home/opt/MailScanner/var/virus.pid`
            echo -n '  MailScanner:       '
         }
         rm -f  /home/opt/MailScanner/var/virus.pid
         echo



and status


# Work out if all of MailScanner is running
         echo    'Checking MailScanner daemons:'
         echo -n '         MailScanner:       '
         pid=`ps ax |grep  '/home/opt/MailScanner'`
         if [ -z "$pid" ] ; then failure; else success; fi
         echo



More information about the MailScanner mailing list