# This script stops and disables the auracast-server and auracast-frontend services
# Requires sudo privileges

echo "Stopping auracast-frontend.service ..."
sudo systemctl kill auracast-frontend.service
sudo systemctl disable auracast-frontend.service

echo "Stopping auracast-server.service..."
systemctl --user kill auracast-server.service
systemctl --user disable auracast-server.service
sudo systemctl kill auracast-server.service
sudo systemctl disable auracast-server.service
sudo rm -f /etc/systemd/system/auracast-server.service

sudo systemctl status auracast-frontend.service --no-pager
systemctl --user status auracast-server.service --no-pager
