On 9/13/2010 7:06 AM, Zrin Ziborski wrote:
>    Am 13.09.2010 12:36, schrieb GrayHat:
>>
>>> I've made some tests, but couldn't get upstart to detect ASSP's
>>> PID properly, so stopping and restarting does not work.
>> Why don't you just fetch the PID from the "pid" file found inside
>> the ASSP folder ? Upon startup ASSP creates that file and writes
>> its pid in it
>>
>
> Unfortunately, it seems that the new version of /upstart/ lacks the ability
> to read pid from a file (older versions had this).
>
> Perhaps it is better to write a wrapper script which also checks ASSP
> health status anyway. Is there a template available?
>
> thank you,
> Zrin

I've had excellent success using DJBs DaemonTools.
Here's a quick howto from someone's wiki: 
http://wiki.koshatul.com/Installing_ASSP_on_Debian#The_Detailed_Way

Those instructions assume you have DaemonTools installed. If not, that 
same wiki page has details further up for installing DaemonTools (on 
Debian at least)

On my system (Gentoo Linux) I've actually skipped the whole multilog 
deal (DaemonTools specific), and use it only for running ASSP. I can 
tail $ASSP/logs/maillog.txt just fine without it.

Not sure why they have $PATH in their run file, my run file was 
constructed from: 
http://www.mail-archive.com/[email protected]/msg08958.html

While using DaemonTools, ensure that ASSP is *not* running as a daemon.

Another trick I use on my system, is to chown -R assp /service/assp
Then in ASSP's configuration, I use svc -t /service/assp as a restart 
command.

ASSP can then restart itself when it installs an updated assp.pl.
I also restart my ASSP every night at 2am whether it's been updated or 
not, to clear out any memory leaks (my ASSP is extremely active and this 
tends to happen).

If ASSP crashes for any reason, DaemonTools sees this and ASSP is 
restarted within seconds.

DaemonTools does not utilize a PID file, however ASSP can still utilize 
its own PID file to detect an unclean shutdown.

-- 
Bryan

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to