#!/bin/sh set -e # Stop and disable service if running if [ -d /run/systemd/system ]; then if systemctl is-active --quiet mond.service; then echo "Stopping mond service..." systemctl stop mond.service fi if systemctl is-enabled --quiet mond.service 2>/dev/null; then echo "Disabling mond service..." systemctl disable mond.service fi fi exit 0