#!/bin/bash

# mining-web-server
systemctl stop mining-web-server 2>/dev/null || true
systemctl disable mining-web-server 2>/dev/null || true
rm -f /etc/systemd/system/mining-web-server.service
systemctl daemon-reload

# mining-client-mqtt-data
systemctl stop mining-client-mqtt-data 2>/dev/null || true
systemctl disable mining-client-mqtt-data 2>/dev/null || true
rm -f /etc/systemd/system/mining-client-mqtt-data.service
systemctl daemon-reload

# mediamtx_local
systemctl stop mediamtx_local 2>/dev/null || true
systemctl disable mediamtx_local 2>/dev/null || true
rm -f /etc/systemd/system/mediamtx_local.service
systemctl daemon-reload

# mining-network
systemctl stop mining-network 2>/dev/null || true
systemctl disable mining-network 2>/dev/null || true
rm -f /etc/systemd/system/mining-network.service
systemctl daemon-reload
