Created
June 17, 2015 05:44
-
-
Save rafaeltuelho/9fd01da535757f1f23e4 to your computer and use it in GitHub Desktop.
This file contains 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 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