|
From: admin <ad...@dc...> - 2010-03-16 08:11:42
|
AutoupdateASSP : Download and Install
AutoRestartAfterCodeChange : 1
AutoRestartCmd : empty
AutoRestartCmd is empty because assp runs as a daemon. I start it from a shell-script. Here are the Scripts:
--------------------------- assp2 (mainscript) ----------------------------------------------------------------------------
#!/bin/sh
#
# $FreeBSD: ports/mail/assp/files/assp.in,v 1.1 2006/07/18 03:08:23 rafan Exp $
#
# PROVIDE: assp
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name=assp2
rcvar=`set_rcvar`
start_cmd="/var/db/assp2/start"
stop_cmd="/var/db/assp2/stop"
restart_cmd=assp_restart
# command=/var/db/assp2/assp.pl
# command_interpreter=/usr/bin/perl
pidfile=/var/db/assp2/pid
extra_commands="reload"
reload_cmd=assp_reload
load_rc_config $name
: ${assp2_enable="NO"}
: ${assp2_flags="/var/db/assp2"}
assp_reload()
{
kill -USR1 `cat $pidfile`
}
assp_restart()
{
/var/db/assp2/stop && /var/db/assp2/start
}
run_rc_command "$1"
------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------- start --------------------------------------------------------------------------------------
#!/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=/var/db/assp2;
else
BASE=$1;
fi
export BASE
echo Starting ASSP Anti-SPAM Proxy server in $BASE
trap '' 1
LANG=
export LANG
exec $BASE/assp.pl $BASE
------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------- Stop --------------------------------------------------------------------------------------
#!/bin/sh
if [ "$1" = "" ]
then
BASE=/var/db/assp2;
else
BASE=$1;
fi
export BASE
echo Stopping ASSP Anti-SPAM Proxy server in $BASE
pidfile=$BASE/pid
kill `cat $pidfile`
------------------------------------------------------------------------------------------------------------------------------------------
Or is the Problem here (Exception.log) ?
Mär-14-10 12:09:46 Error: Worker_5: error: got unexpected signal TERM in Worker_5: package - Thread::Queue, file - /usr/local/lib/perl5/5.10.1/Thread/Queue.pm, line - 51!
Best Regargs
Ralf
>>> Thomas Eckardt <Tho...@th...> 16.03.10 8.15 Uhr >>>
check your setting of 'AutoUpdateASSP' , 'AutoRestartAfterCodeChange',
'AutoRestartCmd'
read the GUI !
Thomas
Von: "admin" <Ad...@dc...>
An: <ass...@li...>
Datum: 16.03.2010 08:10
Betreff: [Assp-test] ASSP2 autoupdate
Hello,
For some time ago, I have problems with download the update. ( ASSP runs
under Freebsd Version 8).
Now I have the following : ASSP download automatic the new Version and
extract the new Version in the right folder.
But assp didn´t start automatic. Can someone can explain me, what assp
need to start automatic ? Restart from the GUI doesn´t go too.
Best regards
Ralf
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Assp-test mailing list
Ass...@li...
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
|