Skip to content

Instantly share code, notes, and snippets.

@sebastianwebber
Forked from rafaeltuelho/rhq-agent.service
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianwebber/d772889b2dea7cb2cb4d to your computer and use it in GitHub Desktop.
Save sebastianwebber/d772889b2dea7cb2cb4d to your computer and use it in GitHub Desktop.
[Unit]
Description=RHQ Agent
After=network.target
[Service]
Type=forking
PIDFile=/opt/rhq-agent/bin/rhq-agent.pid
ExecStart=/opt/rhq-server-4.13.1/bin/rhqctl start --agent
ExecStop=/opt/rhq-server-4.13.1/bin/rhqctl stop --agent
ExecReload=/opt/rhq-server-4.13.1/bin/rhqctl restart --agent
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