← Back to team overview

touch-packages team mailing list archive

[Bug 1448656] Re: systemd doesn't allow proper shutdown after it encountered errornous .service

 

Indeed a broken unit shouldn't fail the boot or shutdown unless it marks
itself as being required for booting. Can you please attach the said
unit, so that I can reproduce this?

It seems your system has some worse problems too:

Apr 26 13:02:29 hostname systemd[1]: Failed to activate swap /dev/mapper/root-swap.
Apr 26 13:02:36 hostname kernel: usb 1-13: device descriptor read/64, error -110
Apr 26 13:02:39 hostname systemd[1]: Failed to start Light Display Manager.
Apr 26 13:02:56 hostname libvirtd[2008]: Interner Fehler: Untergeordneter Prozess (/usr/sbin/dmidecode -q -t 0,1,4,17) unerwartet Ende Status 1: /dev/mem: No such file or directory

All of these are strange and seem to indicate kernel/hardware problems
(message 2 and 4), perhaps a broken fstab (message 1), etc.

Also, there's not only Ctrl+Alt+Del, you can also use "poweroff" or shut
down from the menus. Please don't just pull the plug; if nothing else
helps, "sudo poweroff -f" is still a lot better than that..

** Changed in: systemd (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1448656

Title:
  systemd doesn't allow proper shutdown after it encountered errornous
  .service

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  Assume you have created a `.service` unit file in
  `/lib/systemd/system/` with a syntax error and reboot. At system start
  the start of the unit fails, but then the system/`systemd` no longer
  responds to <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Del</kbd> and the
  system needs to be killed by pulling the plug. That can corrupt the
  system because services which on shutdown hook, like a write-back
  cache which needs to write data back to disks before the machine is
  turned of, aren't executed.

  It'd be better if the errornous service/unit would be skipped, a
  rescue shell provided or at least a possibility to shutdown properly
  given.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: systemd 219-7ubuntu3
  Uname: Linux 4.0.0-040000-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  Date: Sun Apr 26 13:06:54 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-04-20 (5 days ago)
  InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
  MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.0.0-040000-generic root=/dev/mapper/root-root ro rootflags=subvol=@ nomdmonddf nomdmonisw nomdmonddf nomdmonisw
  SourcePackage: systemd
  UpgradeStatus: Upgraded to vivid on 2015-04-24 (1 days ago)
  dmi.bios.date: 08/21/2014
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: P1.20
  dmi.board.name: X99 Extreme3
  dmi.board.vendor: ASRock
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: To Be Filled By O.E.M.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.20:bd08/21/2014:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnX99Extreme3:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
  dmi.product.name: To Be Filled By O.E.M.
  dmi.product.version: To Be Filled By O.E.M.
  dmi.sys.vendor: To Be Filled By O.E.M.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1448656/+subscriptions


References