1 2 3 4 5 6 7 8 9
#!/bin/sh set -e if systemctl >/dev/null 2>/dev/null; then if [ -z "$D" ]; then systemctl stop mdmonitor.service systemctl disable mdmonitor.service fi fi