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

Add support for service.supports(:status => true) #39

Open
andreacampi opened this issue Nov 13, 2012 · 1 comment
Open

Add support for service.supports(:status => true) #39

andreacampi opened this issue Nov 13, 2012 · 1 comment

Comments

@andreacampi
Copy link

In my cookbook I have a test for:

server("my-example").must_be_running

This might be an upstart service that actually runs "ruby example.rb", which means process inspection will not find it.

It would be nice to use the ":status => true" concept from Chef, i.e. using an init-specific method of determining if it's running.

@wheresalice
Copy link

The default process inspection also matches too readily, so if you have a process 'example-server' running then service('example').must_be_running will pass.

It's worth noting for testing that the Chef docs suggest that Redhat has different default behaviour, whereby it has status => true by default unless a pattern is provided.

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

No branches or pull requests

2 participants