#!/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 Artemis After=network-online.target [Service] Type=forking User=artemis Group=artemis WorkingDirectory=/var/apache-artemis/bin ExecStart=/var/apache-artemis/bin/artemis-service start ExecStop=/var/apache-artemis/bin/artemis-service stop UMask=0007 RestartSec=10 Restart=on-abort [Install] WantedBy=multi-user.target EOF } function launch(){ sudo systemctl daemon-reload sudo systemctl enable artemis.service sudo systemctl start artemis.service sudo systemctl status artemis.service } function init(){ validate download approve install launch } init