1 2 3
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl stop #UNITFILES# >/dev/null fi