#!/bin/sh
set -e
if type systemctl >/dev/null 2>/dev/null; then
	if [ -z "$D" ] && systemctl >/dev/null 2>/dev/null; then
		if [ -n "nscd.service" ]; then
			systemctl stop nscd.service
			systemctl disable nscd.service
		fi

		# same as above, --global flag is not supported for stop so do disable only
		[ -n "" ] && \
			systemctl --global disable 
	fi
fi
