feat: publish standalone worker

Separate worker packaging and service lifecycle from the control plane.
Этот коммит содержится в:
Gleb Tv
2026-07-13 17:55:14 +03:00
Коммит 2c7a0236da
309 изменённых файлов: 44004 добавлений и 0 удалений

14
scripts/uninstall-systemd.sh Исполняемый файл
Просмотреть файл

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
if [ "$(id -u)" -ne 0 ]; then
printf 'Run this uninstaller as root.\n' >&2
exit 1
fi
systemctl disable --now rsmon-worker.service 2>/dev/null || true
rm -f /etc/systemd/system/rsmon-worker.service /usr/local/bin/rsmon-worker
systemctl daemon-reload
printf 'Binary and service removed. Configuration and state were preserved in:\n'
printf ' /etc/rsmon-worker\n /var/lib/rsmon-worker\n'