I have three files:
/etc/init.d/assp
/usr/local/assp/start
/usr/local/assp/stop
I'm sure they are on sourceforge somewhere because I didn't write them. I
have attached them but I'm not sure if the list allows attachments. Let me
know and I can email them direct if they get stripped.
I find that if I have problems starting ASSP the best way to start
diagnosing is to shut it down completely and edit assp.cfg by hand. Turn off
AsDaemon and then manually run ASSP (command copied out of the start file):
perl -I /root/perl5/lib/perl5 /usr/local/assp/assp.pl /usr/local/assp
If you get any errors at startup they will then be output to console. CTRL+C
will shut it down.
If ASSP starts on the console but not as a daemon then in emergencies you
can run "screen" and run ASSP from within it until out of hours when you can
figure out what the problem is.
All the best,
Colin Waring.
-----Original Message-----
From: Spyros Tsiolis [mailto:tsiolis.spy...@gmail.com]
Sent: 20 September 2013 08:56
To: assp-test
Subject: [Assp-test] assp dying
Hello again,
ASSP Version: 1.9.9(13262)
I think it did an upgrade on its own again which is fine by me.
However, the process keeps dying on me.
Is there a way to check if assp is running and if its not start
automatically.
Here's what I have under /etc/init.d/
I have a file named "assp.start" and it contains the following :
exec /usr/bin/perl /usr/local/assp/assp.pl
CentOS release 5.5 (Final) - i386
perl version v5.8.8 built for i386-linux-thread-multi
Is there a saner (more polite) way to start assp ?
s.
----------------------------------------------------------------------------
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends
9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test
#!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the ASSP SPAM Proxy server
#
### BEGIN INIT INFO
# Provides: ASSP
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the ASSP SPAM Proxy server
### END INIT INFO
# Rev 0.2.1 Lars Troen
# added reload option
# Rev 0.2.0 R.Toth
# Mods to specify the correct startup directory..
# This needs to be hard-coded for now, until a better way comes up...
# Specifically, the location(s) of the scripts, pid file, config file...
# Mods made for 0.2.0 and new config file format to locate PID file too..
base=/usr/local/assp
confFile=$base/assp.cfg
start="$base/start $base"
stop="$base/stop $base"
lockfile=/var/lock/subsys/assp.lock
pidFile=$base/pid
name='ASSP'
case "$1" in
'start')
echo "Starting ASSP via: $start"
$start >/dev/null 2>&1 </dev/null
# $start
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch $lockfile >/dev/null 2>&1
fi
;;
'stop')
$stop
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $lockfile
fi
;;
'status')
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "$name (pid $pid) is running"
RETVAL=0
else
echo "$name is stopped"
RETVAL=1
fi
else
echo "$name is stopped"
RETVAL=1
fi
;;
'restart')
$stop; sleep 5; $start
# $stop && $start
RETVAL=$?
;;
'reload')
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -1 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "$name (pid $pid) reloading config"
RETVAL=0
else
echo "Unable to reload config. $name is stopped"
RETVAL=1
fi
else
echo "Unable to reload config. $name is stopped"
RETVAL=1
fi
;;
*)
echo "Usage: $0 { start | stop | status | restart }"
RETVAL=1
;;
esac
exit $RETVAL
#!/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 perl -I /root/perl5/lib/perl5 $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`
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test