does not terminate at computer shutdown

Bug #539567 reported by CristianCantoro
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
runit (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Medium
Unassigned
Quantal
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: runit

cristian@cristian-asus:~$ uname -a
Linux cristian-asus 2.6.32-16-generic #25-Ubuntu SMP Tue Mar 9 16:33:12 UTC 2010 x86_64 GNU/Linux

cristian@cristian-asus:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu lucid (development branch)
Release: 10.04
Codename: lucid

cristian@cristian-asus:~$ dpkg -l runit
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-''nst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome Versione Descrizione
+++-=================================-=================================-=============================ii runit 2.0.0-1ubuntu4 a UNIX init scheme with service supervision

I don't know how to reproduce the bug

ProblemType: Bug
Architecture: amd64
Date: Tue Mar 16 14:03:56 2010
Dependencies:

DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/runsv
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
OmitPids: 3192 1023 3182 812
Package: runit 2.0.0-1ubuntu4
ProcCmdline: runsv git-daemon
ProcEnviron: PATH=(custom, no user)
ProcMaps:
 00400000-00404000 r-xp 00000000 08:07 2755 /usr/bin/runsv
 00603000-00605000 rwxp 00003000 08:07 2755 /usr/bin/runsv
 7fff9b0d9000-7fff9b0db000 rwxp 00000000 00:00 0 [stack]
 7fff9b1ff000-7fff9b200000 r-xp 00000000 00:00 0 [vdso]
 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: runit
Title: does not terminate at computer shutdown
Uname: Linux 2.6.32-16-generic x86_64

Revision history for this message
CristianCantoro (cristiancantoro) wrote :
Revision history for this message
Francis Russell (francis-russell) wrote :

I've added a debdiff that should fix this issue here:

https://bugs.launchpad.net/ubuntu/+source/runit/+bug/245728

It's against the runit source package in maverick. Any testing or feedback would be appreciated.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runit - 2.1.1-6.2ubuntu3

---------------
runit (2.1.1-6.2ubuntu3) raring; urgency=low

  [ Christoph Mathys ]
  * Kill runsvdir with SIGHUP when entering runlevel [016]. Fixes LP: #245728,
    LP: #315541 & LP: #539567.

  [ Francis Russell ]
  * Remove installation of runsvdir.conf in obsolete location /etc/event.d.
  * Modify postinst script so that it doesn't to try to grep /etc/inittab on
    initial package install if it doesn't exist.
 -- Christoph Mathys <email address hidden> Fri, 07 Dec 2012 20:43:15 -0500

Changed in runit (Ubuntu):
status: New → Fix Released
Changed in runit (Ubuntu Precise):
status: New → Triaged
importance: Undecided → Medium
Changed in runit (Ubuntu Quantal):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
eraserix (eraserix) wrote :

I cannot reproduce this bug on 12.04. I presume there have been fixes since early 10.04 that made the shutdown much more robust towards misbehaved processes.

From the attached data (Processes.txt) I can see that runsvdir, runsv, run and git-daemon are still running, which is exactly what is to be expected from the runit bug.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello CristianCantoro, or anyone else affected,

Accepted runit into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/runit/2.1.1-6.2ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in runit (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Changed in runit (Ubuntu Quantal):
status: Triaged → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello CristianCantoro, or anyone else affected,

Accepted runit into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/runit/2.1.1-6.2ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
CristianCantoro (cristiancantoro) wrote :

From a fresh install of Ubuntu 12.10 (quantal) , I have enabled the -proposed repo and installed the aforementioned package.
Both:

 sudo poweroff

and

 sudo shutdown -h now

correctly shutdown the computer.

tags: added: verification-done-quantal
Revision history for this message
katsu (katsukatsu-deactivatedaccount) wrote :

ubuntu 12.04.4 32bit

$ sudo apt-get install runit
    :
    :
grep: /etc/ininttab: No such or directory
grep: /etc/ininttab: No such or directory
runsvdir start/running, process 1922

$ ps ax | grep runsvdir
  989 ? Ss 0:00 runsvdir -P /etc/service log: ..........................................................................................................................................................................................................................................................................................................................................................................................................

enable proposed & install package.
$ sudo apt-get install -t precise-proposed runit
runsvdir start/running, process 2576

$ LANG=C apt-cache policy runit
runit:
  Installed: 2.1.1-6.2ubuntu2.1
  Candidate: 2.1.1-6.2ubuntu2.1
  Version table:
 *** 2.1.1-6.2ubuntu2.1 0
        400 http://ubuntutym.u-toyama.ac.jp/ubuntu/ precise-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     2.1.1-6.2ubuntu2 0
        500 http://ubuntutym.u-toyama.ac.jp/ubuntu/ precise/universe i386 Packages

$ ps ax | grep runit
 2305 pts/1 S+ 0:00 grep --color=auto runit

$ sudo poweroff --> no problem
$ sudo shutdown -h now --> no problem

Revision history for this message
katsu (katsukatsu-deactivatedaccount) wrote :

comment #8: input miss

mistake:
$ ps ax | grep runit
 2305 pts/1 S+ 0:00 grep --color=auto runit

correstion
$ ps ax | grep runsvdir
 1015 ? Ss 0:00 runsvdir -P /etc/service log: ...........................................................................................................................................................................................................................................................................................................................................................................................................

Chris J Arges (arges)
tags: added: verification-done-precise
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runit - 2.1.1-6.2ubuntu2.1

---------------
runit (2.1.1-6.2ubuntu2.1) precise; urgency=low

  [ Christoph Mathys ]
  * Kill runsvdir with SIGHUP when entering runlevel [016]. Fixes LP: #245728,
    LP: #315541 & LP: #539567.

  [ Francis Russell ]
  * Remove installation of runsvdir.conf in obsolete location /etc/event.d.
  * Modify postinst script so that it doesn't to try to grep /etc/inittab on
    initial package install if it doesn't exist.
 -- Christoph Mathys <email address hidden> Tue, 11 Sep 2012 13:14:37 +0200

Changed in runit (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for runit has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runit - 2.1.1-6.2ubuntu2.2

---------------
runit (2.1.1-6.2ubuntu2.2) quantal; urgency=low

  [ Christoph Mathys ]
  * Kill runsvdir with SIGHUP when entering runlevel [016]. Fixes LP: #245728,
    LP: #315541 & LP: #539567.

  [ Francis Russell ]
  * Remove installation of runsvdir.conf in obsolete location /etc/event.d.
  * Modify postinst script so that it doesn't to try to grep /etc/inittab on
    initial package install if it doesn't exist.
 -- Christoph Mathys <email address hidden> Tue, 11 Sep 2012 13:14:37 +0200

Changed in runit (Ubuntu Quantal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.