Skip to content

Instantly share code, notes, and snippets.

@gansbrest
Created October 28, 2013 22:34
Show Gist options
  • Save gansbrest/7206018 to your computer and use it in GitHub Desktop.
Save gansbrest/7206018 to your computer and use it in GitHub Desktop.
service "opscenter-agent" do
supports :status => true
start_command "#{agent_dir}/bin/opscenter-agent"
status_command "ps aux | grep -q '[o]pscenter-agent'"
stop_command "kill $(ps aux | grep '[o]pscenter-agent' | awk '{print $2}')"
action :start
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment