Skip to content

Instantly share code, notes, and snippets.

@linuxoid69
Created January 20, 2017 10:55
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 linuxoid69/96c4311a533ee910849ca334e824347e to your computer and use it in GitHub Desktop.
Save linuxoid69/96c4311a533ee910849ca334e824347e to your computer and use it in GitHub Desktop.
ActiveMQ service file for systemd
# cat activemq.service
[Unit]
Description=Apache ActiveMQ
After=network-online.target
[Service]
Type=forking
WorkingDirectory=/opt/activemq/bin
ExecStart=/opt/activemq/bin/activemq start
ExecStop=/opt/activemq/bin/activemq stop
Restart=on-abort
User=activemq
Group=activemq
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment