Bug#784238: systemd: emergency.service restart leads to unusable system
Michael Biebl
biebl at debian.org
Wed May 6 11:53:24 BST 2015
Am 04.05.2015 um 13:15 schrieb Bernd Zeimetz:
> Even worse, pressing enter shows the prompt from the former shell and
> I'm able to get 'bash ... command not found errors'
This looks like a bug in /sbin/sulogin, which does not properly cleanup
it's children, when being killed.
Our /sbin/sulogin implementation comes from sysvinit-utils while
apparently most other distros use /sbin/sulogin from util-linux nowadays.
I think we can workaround that by letting systemd do the process cleanup
and using KillMode=mixed (currently it uses KillMode=process, which
means it leaves the cleanup to the main process).
Bernd, please copy /lib/systemd/system/emergency.service to
/etc/systemd/system/emergency.service and change
KillMode=process to KillMode=mixed.
When you are in the emergency shell, restarting emergency.service should
now also kill the running bash shell.
Before you try to "systemctl restart emergency.service", you can start a
debug shell on tty9 via "systemctl start debug-shell.service" where you
can switch to, if something goes wrong.
Please confirm, if this fixes your issue or not.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150506/37aaaefe/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list