#!/usr/bin/env bash set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SERVICE_SRC="$SCRIPT_DIR/ableton-glm-loop.service" SERVICE_DST="/etc/systemd/system/ableton-glm-loop.service" sudo cp "$SERVICE_SRC" "$SERVICE_DST" sudo systemctl daemon-reload sudo systemctl enable ableton-glm-loop.service sudo systemctl restart ableton-glm-loop.service sudo systemctl status --no-pager ableton-glm-loop.service || true