Stefan
unread,Jun 1, 2012, 2:57:29 PM6/1/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
hi,
is there a way to prevent the start script from creating the "RUNNING_PID" file or is there a option to use a different name.
in my case I have a upstart script that should start multiple play instances which are balanced behind a haproxy.
my problem is, that these upstart scripts call the start-script with only a different portnumber, but since there may be a running instance from the previous call (which created a RUNNING_PID), the start script won't start a new instance.
I thought of a parameter to rename these files or to prevent play from creating one?
my upstart scripts look like this:
play-instance.conf:
respawn
instance $N
exec start-stop-daemon --chuid $USER:$GROUP --exec ${HOME}/start --start -- -Dhttp.port=900$N -Dconfig.resource=application_prod.conf
play.conf
start on startup
task
script
start play-instance N=0
start play-instance N=1
end script
thanks in advance
stefan