For me this works perfectly
-requirements
assp should be installed on /usr/local/assp
1) upload start and stop on /usr/local/assp
2) chmod 755 start and stop
3) upload assp on /etc/rc.d/init.d
4) chmod 755 assp
5) on assp web interface select to run assp as a demom
6) kill all assp processes
now try if it works with
service assp start
and
service assp status
and
service assp restart
7) if all works you can add to your startup list with
chkconfig --add assp
done.
I am writing this guide because the files on /usr/local/assp/rc seems to
be outdated and didn't work for me.
Graziano
#!/bin/sh
#
# 'stop' - Shell script a la RedHat initialization routines
# R. Toth - May/2003
# V1.00 - Initial attempt at creating a fully compatible and compliant
# shutdown script that's called out of '/etc/init.d' (linked appropriately
# to the rc-level you are running in. You can link this as 'K31assp', so that
ASSP is
# terminated just after 'sendmail', in case you are also
# running sendmail locally for your Email needs.
#
if [ "$1" = "" ]
then
BASE=/usr/local/assp;
else
BASE=$1;
fi
export BASE
echo Starting ASSP Anti-SPAM Proxy server in $BASE
trap '' 1
LANG=
export LANG
exec /usr/bin/perl $BASE/assp.pl $BASE
#!/bin/sh
if [ "$1" = "" ]
then
BASE=/usr/local/assp;
else
BASE=$1;
fi
export BASE
echo Stopping ASSP Anti-SPAM Proxy server in $BASE
pidfile=$BASE/pid
kill `cat $pidfile`
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user