Skip to content

Instantly share code, notes, and snippets.

@sebastianwebber
Forked from rafaeltuelho/rhq-server.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/fa15f9b433a1f667e910 to your computer and use it in GitHub Desktop.
Save sebastianwebber/fa15f9b433a1f667e910 to your computer and use it in GitHub Desktop.
JON/RHQ Server Unit Service for Systemd bases systems (tested with JON 3.3.0.GA-Update2 on RHEL 7)
[Unit]
Description=RHQ Server
Requires=rhq-storage.service
After=rhq-storage.service
[Service]
Type=forking
PIDFile=/opt/rhq-server-4.13.1/bin/internal/rhq-server.pid
ExecStart=/opt/rhq-server-4.13.1/bin/rhqctl start --server
ExecStop=/opt/rhq-server-4.13.1/bin/rhqctl stop --server
ExecReload=/opt/rhq-server-4.13.1/bin/rhqctl restart --server
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