Skip to content

Instantly share code, notes, and snippets.

@lehrblogger
Last active December 10, 2015 14:28
Show Gist options
  • Save lehrblogger/4447624 to your computer and use it in GitHub Desktop.
Save lehrblogger/4447624 to your computer and use it in GitHub Desktop.
service "supervisor" do
service_name "supervisor"
start_command "supervisord -c #{node['dirs']['supervisor']}/supervisord.conf"
stop_command "supervisorctl -c #{node['dirs']['supervisor']}/supervisord.conf stop"
status_command "supervisorctl -c #{node['dirs']['supervisor']}/supervisord.conf status"
restart_command "supervisorctl -c #{node['dirs']['supervisor']}/supervisord.conf restart"
reload_command "supervisorctl -c #{node['dirs']['supervisor']}/supervisord.conf reread && supervisorctl -c #{node['dirs']['supervisor']}/supervisord.conf update"
supports ({
:start => true,
:stop => true,
:status => true,
:restart => true,
:reload => true
})
action :start
end
2013-01-03 20:53:40,465 CRIT Can't drop privilege as nonroot user
2013-01-03 20:53:40,465 WARN Included extra file "/home/vagrant/supervisor/programs/celerybeat.conf" during parsing
2013-01-03 20:53:40,465 WARN Included extra file "/home/vagrant/supervisor/programs/celeryd.conf" during parsing
2013-01-03 20:53:40,465 WARN Included extra file "/home/vagrant/supervisor/programs/leaf.conf" during parsing
2013-01-03 20:53:40,465 WARN Included extra file "/home/vagrant/supervisor/programs/gunicorn.conf" during parsing
2013-01-03 20:53:40,493 INFO RPC interface 'supervisor' initialized
2013-01-03 20:53:40,494 INFO RPC interface 'supervisor' initialized
2013-01-03 20:53:40,494 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2013-01-03 20:53:40,496 INFO daemonizing the supervisord process
2013-01-03 20:53:40,499 INFO supervisord started with pid 18782
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment