Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- path = ENV['PATH'].split(':')
- path.unshift('/sbin')
- path.unshift('/usr/sbin')
- path.unshift('/usr/local/sbin')
- path.unshift('/bin')
- path.unshift('/usr/bin')
- path.unshift('/usr/local/bin')
- path.uniq!
- ENV['PATH'] = path.join(':')
- God.watch do |god|
- god.name = 'sensu-client'
- god.start = 'sensu-client --pid_file=/var/run/sensu-client.pid'
- god.stop = 'kill `cat /var/run/sensu-client.pid`'
- god.log_cmd = 'logger -t sensu_client'
- god.keepalive
- end
Add Comment
Please, Sign In to add comment