#290 √ resolved
Gabriel Handford

[PATCH] Kill shouldn't be immediately triggered on -k or -K opts parse

Reported by Gabriel Handford | April 30th, 2008 @ 12:49 AM | in 0.9.4

Kill is immediately called when the -k (or -K) opts are encountered. Therefore any arguments passed after the kill won't be handled (like a pidfile).

merb -K 4000 -P /var/run/merb-app.4000.pid doesn't work.

I have a fix at the branch:

http://github.com/gabriel/merb-c...

It sets an :action value on the options and then in the start method checks it to perform the kill.

I think this makes sense since after arguments are parsed we apply the start (or stop) action.

This in addition to the pidfile patch allows me to manage my merb cluster processes through monit :)

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »