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?

Thankful for any hint,
Zrin

--------8<--------

description     "ASSP Mail Filter"

start on (runlevel [2345] and started mysql)
stop on (stopping mysql or runlevel [!2345])

env HOME=/usr/share/assp
umask 007
chdir /usr/share/assp
console output

expect fork
respawn
respawn limit 10 30
oom 12

exec /usr/bin/perl assp.pl

pre-start script
         [ -d /usr/share/assp ]
         [ -s /usr/share/assp/assp.pl ]
         [ -s /usr/share/assp/assp.cfg ]
         echo "starting assp @ $(/bin/date)"
end script

pre-stop script
         echo "stopping assp @ $(/bin/date)"
         wget 
'https://root:*[email protected]:55555/shutdown_frame?action= Proceed ' 
-O /dev/null 2>/dev/null
         echo 'waiting 5s ...'
         sleep 5
         echo ' ok'
end script

--------8<--------

------------------------------------------------------------------------------
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