Files
zenai-apc-allinone/uninstall-services.sh

14 lines
642 B
Bash
Executable File

#!/usr/bin/env bash
# Uninstall systemd services for ZenAI APC Ngoro
set -euo pipefail
sudo systemctl stop apc-ngoro-service apc-ngoro-dashboard apc-ngoro-recount apc-ngoro-counter 2>/dev/null || true
sudo systemctl disable apc-ngoro-service apc-ngoro-dashboard apc-ngoro-recount apc-ngoro-counter 2>/dev/null || true
sudo rm -f /etc/systemd/system/apc-ngoro-service.service
sudo rm -f /etc/systemd/system/apc-ngoro-counter.service
sudo rm -f /etc/systemd/system/apc-ngoro-recount.service
sudo rm -f /etc/systemd/system/apc-ngoro-dashboard.service
sudo systemctl daemon-reload
echo "Services apc-ngoro-service and component units removed."