Last active
August 29, 2015 14:23
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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
References:
See: