# cd /usr/lib/systemd/system/
# vi activemq.service
[Unit]
Description=activemq message queue
After=network.target
[Service]
Type=forking
ExecStart=/data/activemq/bin/linux-x86-64/activemq start
ExecReload=/data/activemq/bin/linux-x86-64/activemq restart
ExecStop=/data/activemq/bin/linux-x86-64/activemq stop
PrivateTmp=true
[Install]
WantedBy=multi-user.target
# systemctl enable activemq
# systemctl start activemq