#!/bin/bash
set -e

# This script stops and disables the AES67 services
# Requires sudo privileges

# Stop services
sudo systemctl stop ptp_aes67.service
systemctl --user stop pipewire-aes67.service

# Disable services from starting on boot
sudo systemctl disable ptp_aes67.service
systemctl --user disable pipewire-aes67.service

echo "\n--- ptp_aes67.service status ---"
sudo systemctl status ptp_aes67.service --no-pager

echo "\n--- pipewire-aes67.service status (user) ---"
systemctl --user status pipewire-aes67.service --no-pager

echo "AES67 services stopped, disabled, and status printed successfully."
