summaryrefslogtreecommitdiffstats
path: root/autoscripts/postinst-systemd-start
blob: 9072c534ad2759ce18515a193bcb875882367d0e (plain)
1
2
3
4
5
6
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then
		systemctl --system daemon-reload >/dev/null || true
		deb-systemd-invoke start #UNITFILES# >/dev/null || true
	fi
fi