File: postinst-systemd-restart

package info (click to toggle)
debhelper 13.24.2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,344 kB
  • sloc: perl: 14,683; makefile: 131; sh: 9
file content (11 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (6)
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