[Unit] Description=Apache ActiveMQ After=network-online.target [Service] Type=forking WorkingDirectory=/opt/activemq/activemq/bin ExecStart=/opt/activemq/activemq/bin/activemq start ExecStop=/opt/activemq/activemq/bin/activemq stop Restart=on-abort User=root Group=root [Install] WantedBy=multi-user.target