Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created June 17, 2015 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafaeltuelho/9fd01da535757f1f23e4 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/9fd01da535757f1f23e4 to your computer and use it in GitHub Desktop.
[Unit]
Description=RHQ Agent
After=network.target
[Service]
Type=forking
PIDFile=/var/run/rhq-agent/rhq-agent.pid
User=jboss
Group=jboss
ExecStart=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom start --agent
ExecStop=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom stop --agent
ExecReload=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom restart --agent
#Restart=on-failure
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment