Skip to content

Instantly share code, notes, and snippets.

@phumpal phumpal/sensu-client.conf

Last active Oct 21, 2015
What would you like to do?
This is a simple upstart config for sensu-client
description "sensu-client"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
chdir /opt/sensu
pre-start script
exec su - sensu -c "/opt/sensu/.rvm/wrappers/ruby-2.0.0-p647/sensu-client -b -d /etc/sensu -l /var/log/sensu/sensu-client.log -p /var/run/sensu/"
end script
post-stop script
if [ -f /var/run/sensu/ ]; then
kill -s QUIT `cat /var/run/sensu/`
rm -f /var/run/sensu/
sleep 1
end script

This comment has been minimized.

Copy link
Owner Author

phumpal commented Oct 21, 2015

The sensu-client was installed via rvm + gem install and not via apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.