feat: add systemd service unit and install script

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsJfJngYUpB4dr77GvcEb8
This commit is contained in:
2026-07-01 00:53:09 +02:00
co-authored by Claude Sonnet 4.6
parent 9f221c5d19
commit 6651d43314
2 changed files with 26 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
SERVICE=brewpi
UNIT_FILE="$(dirname "$(realpath "$0")")/${SERVICE}.service"
TARGET=/etc/systemd/system/${SERVICE}.service
sudo cp "$UNIT_FILE" "$TARGET"
sudo systemctl daemon-reload
sudo systemctl enable "$SERVICE"
echo "Installed. Start with: sudo systemctl start $SERVICE"
echo "View logs with: journalctl -u $SERVICE -f"