summaryrefslogtreecommitdiffstats
path: root/autoscripts/postinst-systemd-restartnostart
blob: d3f199cfdb3f7576916141ec6966938de9b5f4bb (plain)
1
2
3
4
5
6
7
8
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -d /run/systemd/system ]; then
		systemctl --system daemon-reload >/dev/null || true
		if [ -n "$2" ]; then
			deb-systemd-invoke #RESTART_ACTION# #UNITFILES# >/dev/null || true
		fi
	fi
fi