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

calls service instead of init.d #181

Closed
wants to merge 1 commit into from
Closed

Conversation

j-martin
Copy link

Fix service start/restart Ubuntu (which doesn't allow init.d)

Fix service start/restart Ubuntu (which doesn't allow init.d)
@deric
Copy link
Contributor

deric commented Nov 23, 2013

It would be better to restart service via puppet notify => Service[nginx] when the nginx -t is successful. Puppet should know which mechanism of restart the OS supports.

@3flex
Copy link
Contributor

3flex commented Jan 2, 2014

@j-martin this is unnecessary on Ubuntu since the init scripts from Debian upstream perform a config test before starting, restarting and reloading. When restarting/reloading it's tested before the daemon's stopped so it's not possible to fail a config test and be left with no running daemon (i.e. it's only stopped if the config test passes).

This has been true since version 0.7.61-1, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539778. All currently supported Debian & Ubuntu versions will see this behavior.

I recommend closing this PR.

@j-martin j-martin closed this Jan 13, 2014
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.

3 participants