Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Last active August 29, 2015 14:23
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/6c0e934be8b057dcce25 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/6c0e934be8b057dcce25 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/redhat/jon-server-3.3.0.GA/bin/internal/rhq-server.pid
User=jboss
Group=jboss
ExecStart=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom start --server
ExecStop=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom stop --server
ExecReload=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom restart --server
#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