description "apertium-apy is a translation server and API for apertium"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
# if we restart > 10 times within 5 seconds, mark as failed and give up:
respawn limit 10 5
# run it as user "me", not root:
setuid me
exec /home/me/src/apertium/trunk/apertium-tools/apertium-apy/servlet.py /home/me/src/apertium/trunk 2737