On 9/13/2010 2:42 AM, Zrin Ziborski wrote:
> Hello,
>
> has anyone tried to run ASSP 2 under /upstart/, the event-based replacement
> for /sbin/init, used in Ubuntu Server 10.04?
>
> I've made some tests, but couldn't get upstart to detect ASSP's PID
> properly, so stopping and restarting does not work.
> See my script below (work in progrss).
>
> What I already tried:
> - expext fork, expect daemon
> - turning AsADaemon off
>
> What does ASSP 2 exactely do with ASADaemon turned on,
> how many time does it (perl) fork altogether?
I might be oversimplifying - but I've had good results with :
assp.conf
#
description "ASSP"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 3 10
chdir /opt/assp
exec /usr/bin/perl /opt/assp/assp.pl
AsADaemon is OFF - I had terrible results with AsADaemon and export
fork/daemon in upstart.
Later versions of ASSP allowed for auto-update with AsADaemon off - but
it wasn't an option when I set this up, so I added to AutoRestartCmd -
kill `ps ax | grep 'assp' | grep -v grep | awk '{print $1}'`
--
Daniel
------------------------------------------------------------------------------
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