#!/bin/sh
# postrm script for cadmousepro

# Stop the service if it exists
if systemctl --quiet is-active cadmousepro; then
  systemctl stop cadmousepro
fi

# Disable the service if it exists
if systemctl --quiet is-enabled cadmousepro; then
  systemctl disable cadmousepro
fi

# Reload the systemd daemon to apply changes
systemctl daemon-reload

exit 0