Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created June 17, 2015 05:43
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/1652e6abe6769492b015 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/1652e6abe6769492b015 to your computer and use it in GitHub Desktop.
[Unit]
Description=RHQ Storage Node
After=network.target
PartOf=rhq-server.service
[Service]
Type=forking
PIDFile=/opt/redhat/jon-server-3.3.0.GA/rhq-storage/bin/cassandra.pid
User=jboss
Group=jboss
ExecStart=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom start --storage
ExecStop=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom stop --storage
ExecReload=/opt/redhat/jon-server-3.3.0.GA/bin/rhqctl-custom restart --storage
#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