← Back to team overview

touch-packages team mailing list archive

[Bug 1212142] Re: Slow shutdown/restart on saucy with sendsigs waiting 10 seconds

 

I experience the same bug on precise. Adding sleep 2 after sync (not
before like @vim-i wrote above) helps.

I figured out that the problem is that when:

    killall5 -15 $OMITPIDS # SIGTERM

is called, `initctl emit plymouth-ready` process is not alive yet, so it
does not receive SIGTERM. (I checked that.)

However, when

    if killall5 -18 $OMITPIDS ; then

is called, initctl process is running. As it is not in $OMITPIDS,
`killall -18 reports` that not all processes has been killed and the
loop does not break.

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

Title:
  Slow shutdown/restart on saucy with sendsigs waiting 10 seconds

Status in “sysvinit” package in Ubuntu:
  Confirmed
Status in “sysvinit” source package in Saucy:
  Confirmed

Bug description:
  I've the S20sendsigs waiting 10 seconds on each shutdown, making the
  shutdown slow.

  I hacked around to debug it (probably completely wrongly), and ended
  up with the attached pids.txt. What is shows are the processes still
  after 9 seconds spent in the killall5 loop, with the pids from
  OMITPIDS removed from my ps ax output. It leaves only init, kernel
  processes, S20sendsigs itself and initctl which in my opinion should
  be enough not to wait for yet another second? The same output is there
  after two seconds already.

  I've workarounded it now by changing the "for seq in 1 2 3 4 5 6 7 8 9 10; do" to "for seq in 1 ; do" which gives me a snappy shutdown back.
  --- 
  ApportVersion: 2.12-0ubuntu3
  Architecture: amd64
  CheckboxSubmission: 1896b893828b4203b948b1eb6546be06
  CheckboxSystem: d00f84de8a555815fa1c4660280da308
  DistroRelease: Ubuntu 13.10
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2012-03-16 (515 days ago)
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120316)
  MarkForUpload: True
  Package: initscripts 2.88dsf-41ubuntu3
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 3.11.0-2.5-generic 3.11.0-rc5
  Tags:  saucy
  Uname: Linux 3.11.0-2-generic x86_64
  UpgradeStatus: Upgraded to saucy on 2013-06-04 (70 days ago)
  UserGroups: adm autopilot cdrom dip lp lpadmin motion plugdev sambashare sudo
  mtime.conffile..etc.init.d.sendsigs: 2013-08-14T07:58:07.021383

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