Guest User

Untitled

a guest
Feb 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. path = ENV['PATH'].split(':')
  2. path.unshift('/sbin')
  3. path.unshift('/usr/sbin')
  4. path.unshift('/usr/local/sbin')
  5. path.unshift('/bin')
  6. path.unshift('/usr/bin')
  7. path.unshift('/usr/local/bin')
  8. path.uniq!
  9. ENV['PATH'] = path.join(':')
  10.  
  11. God.watch do |god|
  12. god.name = 'sensu-client'
  13. god.start = 'sensu-client --pid_file=/var/run/sensu-client.pid'
  14. god.stop = 'kill `cat /var/run/sensu-client.pid`'
  15. god.log_cmd = 'logger -t sensu_client'
  16. god.keepalive
  17. end
Add Comment
Please, Sign In to add comment