summaryrefslogtreecommitdiffstats
path: root/autoscripts/postinst-systemd-restart
blob: 8155bc059989ec991936529723b3bc47830c773f (plain)
1
2
3
4
5
6
7
8
9
10
11
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
			_dh_action=#RESTART_ACTION#
		else
			_dh_action=start
		fi
		deb-systemd-invoke $_dh_action #UNITFILES# >/dev/null || true
	fi
fi