Skip to content

Instantly share code, notes, and snippets.

@ethnchao
Created May 29, 2018 06:39
Show Gist options
  • Save ethnchao/0b5119146ad1e0ab397e58b75d3dd0ad to your computer and use it in GitHub Desktop.
Save ethnchao/0b5119146ad1e0ab397e58b75d3dd0ad to your computer and use it in GitHub Desktop.
Systemd activemq.service
[Unit]
Description=ActiveMQ service
After=network.target
[Service]
Type=forking
ExecStart=/var/activemq/bin/activemq start
ExecStop=/var/activemq/bin/activemq stop
User=root
Group=root
Restart=always
RestartSec=9
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=activemq
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment