blob: f5371ce81919c9f3e1f692f4e76a32b3420fdade (
plain)
1
2
3
4
5
6
7
8
9
10
|
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 /sys/fs/cgroup/systemd ] ; then
systemd-tmpfiles --create >/dev/null || true
fi
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
fi
|