Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent from starts two processes #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mashiro
Copy link

@mashiro mashiro commented Apr 18, 2013

# before
sh -c ruby -e 'loop { p ARGV; sleep 1; }' 'foo bar'
 \_ ruby -e loop { p ARGV; sleep 1; } foo bar

# after
ruby -e loop { p ARGV; sleep 1; } foo bar

@eric
Copy link
Collaborator

eric commented Apr 18, 2013

Interesting idea. Can you paste what the w.start command was?

@mashiro
Copy link
Author

mashiro commented Apr 18, 2013

I used this config.

God.watch do |w|
  w.name = 'test'
  w.start = "ruby -e 'loop { p ARGV; sleep 1; }' 'foo bar'"
  w.keepalive
end

@eric
Copy link
Collaborator

eric commented Jun 3, 2013

I'm a little bit scared to change this, but it definitely is something that has hurt people in the past.

Any opinions @mojombo, @jnewland, @tmm1?

@jnewland
Copy link
Contributor

jnewland commented Jun 3, 2013

Oh wow, I had never seen Shellwords before. Amazing. This would definitely address a long-standing wart in God. I'm sure there are edge cases in Shellwords, though. Unsure how to test for those.

Looks like the API is a bit different between 1.8.7 and 1.9.3. Is backwards compat still a thing we care about here?

@eric
Copy link
Collaborator

eric commented Jun 3, 2013

I'm still running 1.8.7, so I am definitely interested in backwards compatibility.

@rtyler
Copy link

rtyler commented Feb 24, 2014

@eric Considering 1.8.7 is now completely end-of-lifed, do you still care about backwards compatibility on this?

@eric
Copy link
Collaborator

eric commented Feb 24, 2014

Yes, I would like to keep 1.8.7 for now. It still is the ruby that we run god with.

@skull-squadron
Copy link

Lots of shops are still running 1.8.7 (REE) in production b/c change is risk and doesn't have an immediate payoff. (Rant: A maintainer strategy for handling FOSS deprecations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants