Skip to content

Fixbug, not location supervisor file in init.d #1

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

Merged
merged 2 commits into from
Apr 28, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ supervisor::app { 'your-app-title':
command => 'The command that will be run this app', # required
directory => 'Path where your command will be run' # required
user => 'User to execute this app' # Default to ubuntu
}
```
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
ensure => running,
enable => true,
require => Package['supervisor'],
stop => '/etc/init.d/supervisord stop',
start => '/etc/init.d/supervisord start',
stop => 'test -e /etc/init.d/supervisord && /etc/init.d/supervisord stop || /etc/init.d/supervisor stop',
start => 'test -e /etc/init.d/supervisord && /etc/init.d/supervisord start || /etc/init.d/supervisor start',
restart => 'supervisorctl update',
}

Expand Down