ASSP:Inicializacao Automatica do ASSP

Utilize o seguinte script para inicializar o ASSP no Linux

# PATH=/bin:/usr/bin:/sbin:/usr/sbin case "$1" in    start)         echo -n "Starting the Anti-Spam SMTP Proxy"         cd /opt/assp         perl assp.pl     ;;     stop) echo -n "Stopping the Anti-Spam SMTP Proxy" kill -9 `ps ax | grep "perl assp.pl" | grep -v grep | awk '{ print $1 }'` ;;    restart)         $0 stop || true         $0 start     ;;     *) echo "Usage: /etc/init.d/assp {start|stop|restart}" exit 1 ;; esac exit 0
 * 1) !/bin/sh
 * 2) change this to #!/bin/ksh for AIX and Solaris
 * 3) RC RunLevel Entry Point
 * 4) Start/Stop Script for ASSP on Linux/AIX/Solaris
 * 5) 2007 Copyright by Enio Basso, feedback ebasso at ebasso dot net
 * 6) You may use and distribute the unmodified version of this script
 * 7) Use at your own risk. No implied or specific warranties are given.
 * 8) You may change it for your own usage only
 * 9) Version 1.0 10.09.2007
 * 10) chkconfig: 2345 66 19
 * 11) description: ASSP Antispam SMTP Proxy
 * 1) chkconfig: 2345 66 19
 * 2) description: ASSP Antispam SMTP Proxy
 * 1) description: ASSP Antispam SMTP Proxy
 * 1) Change the location of your assp.pl file
 * 1) Start or stop ASSP

Procedimento:

1) Vá para o diretório /etc/rc.d/init.d.

2) Crie o arquivo assp, cole o conteúdo acima e salve o arquivo.

Obs.: confirme o local onde você colocou os arquivos do ASSP, no meu caso /opt/assp

3) Adicione aos serviços através do comando

> chkconfig --add assp

Bye