File: postinst-systemd-restart

package info (click to toggle)
init-system-helpers 1.22
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 236 kB
  • ctags: 26
  • sloc: perl: 915; sh: 308; makefile: 10
file content (9 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
if [ -d /run/systemd/system ]; then
	systemctl --system daemon-reload >/dev/null || true
	if [ -n "$2" ]; then
		_dh_action=try-restart
	else
		_dh_action=start
	fi
	deb-systemd-invoke $_dh_action #UNITFILES# >/dev/null || true
fi