/lib/lsb/init-functions.d/40-systemd unconditionally uses "set +e; set
+u". This can change the behavior of init scripts that use "set -e"
and/or "set -u".
Change the systemd integration to not rely on "set +e" or "set +u" but
instead work correctly in all cases by catching all commands that might
fail.
Closes: #751472
- Use DefaultDependencies=no in ifup@.service so the service can be started
as early as possible.
- Create the ifupdown runtime directory in ifup@.service as we can no longer
rely on the networking service to do that for us.
- Don't stop ifup@.service on shutdown but let the networking service take
care of stopping all hotplugged interfaces.
- Only start ifup@.service for interfaces configured as allow-hotplug.
If systemd is not the active PID 1 and the SysV compat tools are
provided by systemd-sysv, /sbin/telinit simply forwards the requests to
the native telinit implementation.
To make the upgrade from sysvinit to systemd less disruptive, the plan
is to make the transitional sysvinit package provide
/lib/sysvinit/telinit and /lib/sysvinit/init which then can be used as a
fallback in case of emergency.
Set the telinit path in systemd accordingly in preparation for that.
since this breaks dist-upgrades from wheezy when switching from sysvinit
to systemd-sysv as default init. While downgrading the Pre-Depends in
sysvinit would have been an alternative, dropping the Conflicts and only
keeping the Replaces was deemed the lesser evil.
Closes: #748355
The cgroup handling has been reworked in v205 and logind no longer
creates cgroup hierarchies on its own. That means that the standalone
logind is no longer functional without support from systemd (or an
equivalent cgroup manager).
Drop patches which have been applied upstream:
- debian/patches/Fix-CPUShares-configuration-option.patch
- debian/patches/Recognize-discard-option-in-etc-crypttab.patch
- debian/patches/Start-ctrl-alt-del.target-irreversibly.patch
- debian/patches/core-dbus-properly-export-cgroup-properties-on-socke.patch
- debian/patches/initctl-use-irreversible-jobs-when-switching-runleve.patch
- debian/patches/journald-DO-recalculate-the-ACL-mask-but-only-if-it-.patch
- debian/patches/polkit-Avoid-race-condition-in-scraping-proc.patch
- debian/patches/systemctl-mangle-names-when-avoiding-dbus.patch
- debian/patches/systemd-tmpfiles-setup-dev-remain-after-exit.patch
Drop patches which no longer work after the cgroup rework:
- debian/patches/Clean-up-closing-empty-sessions-when-not-running-und.patch
- debian/patches/Make-sd_login_monitor_new-work-for-logind-without-sy.patch
Drop patch which no longer applies and is supposed to be fixed:
- debian/patches/Avoid-sending-sigterm-to-session-leader.patch
This avoids future diff noise when removing, cherry-picking, and merging
patches. From now on, always use "gbp-pq export --no-patch-numbers" to update
them.