summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-init-nostart
blob: 6ccb4830725e87f4d9187fb85133d76ba59c0a3c (plain)
1
2
3
4
5
6
7
8
9
if [ -x "/etc/init.d/#SCRIPT#" ]; then
	# In case this system is running systemd, we need to ensure that all
	# necessary tmpfiles (if any) are created before starting.
	if [ -d /run/systemd/system ] ; then
		systemd-tmpfiles --create >/dev/null || true
	fi

	update-rc.d #SCRIPT# #INITPARMS# >/dev/null || #ERROR_HANDLER#
fi