systemd/debian/systemd-sysv.postinst
Michael Biebl 7598935ed4 Don't ignore errores in systemd-sysv postinst
and add a missing #DEBHELPER# stanza.
2012-04-28 11:25:43 +02:00

17 lines
492 B
Bash

#!/bin/sh
set -e
# We are installing systemd-sysv but systemd is not running.
# This most likely means we are upgrading from another init, possibly a newer
# sysvinit version which created the initctl socket at /run/initctl.
# systemd's sysv tools expect the socket at /dev/initctl, so create the compat
# symlink ourselves.
if [ ! -e /sys/fs/cgroup/systemd ] ; then
if [ ! -p /dev/initctl ] && [ -p /run/initctl ] ; then
ln -sf /run/initctl /dev/initctl
fi
fi
#DEBHELPER#