Skip to content

Instantly share code, notes, and snippets.

@phumpal phumpal/sensu-client.conf
Last active Oct 21, 2015

Embed
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]
respawn
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/sensu-client.pid"
end script
post-stop script
if [ -f /var/run/sensu/sensu-client.pid ]; then
kill -s QUIT `cat /var/run/sensu/sensu-client.pid`
rm -f /var/run/sensu/sensu-client.pid
fi
sleep 1
end script
@phumpal

This comment has been minimized.

Copy link
Owner Author

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.