** Description changed:

  It has been normal that applications first get the SIGTERM signal before
  SIGKILL on shutdown/reboot in order to successfully finish any pending
  tasks. Now it seem this logic has been changed to something else,
  causing problems to mosh and many others:
  
  https://bugs.launchpad.net/ubuntu/+source/mosh/+bug/1446982
  
  SIGTERM  suggestion can be seen here:
  
  http://unixhelp.ed.ac.uk/CGI/man-cgi?shutdown+8
  
  I created this error report to find out the correct way for applications
  to fix this problem or to create one fix to systemd, bringing back the
  old "BSD shutdown" functionality.
  
  This report is for Ubuntu 15.04.
+ 
+ SRU TEST CASE:
+  - Open a terminal, enter some commands, then run "reboot".
+  - After a reboot, chances are very high that your bash history does not 
contain your most recently typed commands
+  - With the updated package, the bash history should be intact.

** Description changed:

  It has been normal that applications first get the SIGTERM signal before
  SIGKILL on shutdown/reboot in order to successfully finish any pending
  tasks. Now it seem this logic has been changed to something else,
  causing problems to mosh and many others:
  
  https://bugs.launchpad.net/ubuntu/+source/mosh/+bug/1446982
  
  SIGTERM  suggestion can be seen here:
  
  http://unixhelp.ed.ac.uk/CGI/man-cgi?shutdown+8
  
  I created this error report to find out the correct way for applications
  to fix this problem or to create one fix to systemd, bringing back the
  old "BSD shutdown" functionality.
  
  This report is for Ubuntu 15.04.
  
  SRU TEST CASE:
-  - Open a terminal, enter some commands, then run "reboot".
-  - After a reboot, chances are very high that your bash history does not 
contain your most recently typed commands
-  - With the updated package, the bash history should be intact.
+  - Open a terminal, enter some commands, then run "reboot".
+  - After a reboot, chances are very high that your bash history does not 
contain your most recently typed commands
+  - With the updated package, the bash history should be intact.
+ 
+ REGRESSION POTENTIAL:
+  - The original commit was applied because of an inherent race condition with 
cgroup's release_agent -- in rare corner cases an nspawn container (probably 
also LXC) can miss them. In that case it's possible that you instead get a 90s 
timeout on the unit that is shutting down. But this does not mean data loss, 
just a rare shutdown hang from containers (for the record, I never actually saw 
that hanging with LXC), so I think it's a good trade-off.

** Changed in: systemd (Ubuntu)
    Milestone: vivid-updates => None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1448259

Title:
  Systemd does not send SIGTERM first on shutdown

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to