#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :</dev/null <<'EOF' [Unit] Description=Apache ActiveMQ After=network-online.target [Service] Type=forking User=activemq Group=activemq WorkingDirectory=/opt/cli/apache-activemq-5.17.1/bin ExecStart=/opt/cli/apache-activemq-5.17.1/bin/activemq start ExecStop=/opt/cli/apache-activemq-5.17.1/bin/activemq stop Restart=on-abort [Install] WantedBy=multi-user.target EOF } function launch(){ sudo systemctl daemon-reload sudo systemctl enable activemq.service sudo systemctl start activemq.service sudo systemctl status activemq.service } function init(){ validate download approve install launch } init