[Bug 183729] Re: utmp not cleared on tty logout

2009-05-20 Thread Petr Lautrbach
Hi

This patch is againts lp:upstart/0.3   branch.

It adds utmp id stanza and writes utmp entries and wtmp log
as described in utmp(5).


How it works:

When child is forked and job-utmp is set, child inserts to first line with 
same id (utmp.ut_id)
new values with his own pid, id, actual time and type set to INIT_PROCESS and 
logs in wtmp.

When jobs die and utmp is set, init sets type DEAD_PROCESS and clears values 
for entry
with dead process pid. Entry is also logged to wtmp log.



** Attachment added: add utmp stanza to 0.3 branch
   http://launchpadlibrarian.net/26978286/utmp-0.3.patch

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2009-01-28 Thread Scott James Remnant
** Changed in: upstart
   Target: None = 0.5-later

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-10-24 Thread Scott James Remnant
** Changed in: upstart (Ubuntu)
   Status: Invalid = Triaged

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-08-13 Thread Scott James Remnant
** Changed in: upstart
   Target: 0.5 = None

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-05-27 Thread dcobra
Here's the workaround I found myself, in case somebody is interested.
Install the runit package, which seems to handle utmp better than
upstart does, copy the /etc/sv/getty-5 directory that comes with it to
/etc/sv/getty-1 through getty-4 and getty-6, modify the run and finish
scripts and the supervise link in these directories, changing the tty
numbers accordingly. Finally, stop upstart from running getty by moving
/etc/event.d/tty? elsewhere and tell runit to take charge of running
them by making soft links from /etc/service/getty-? to /etc/sv/getty-?.
That's it, no more stale utmp entries.

I'm still interested if anybody cares to comment on whether there is a
better workaround than this one.

As a side note, pardon my ignorance, but I thought moving a bug upstream
meant that it is actually caused by some other bug in an underlying
package, but I couldn't find the continuation of this bug anywhere in
launchpad. So is it abandoned or where was it taken up?

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-02-17 Thread Scott James Remnant
** Changed in: upstart
   Target: None = 0.5

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-01-18 Thread Scott James Remnant
Moving bug upstream (I wish Launchpad could do this properly)

** Changed in: upstart
   Importance: Undecided = Low
   Status: New = Confirmed

** Changed in: upstart (Ubuntu)
   Status: Confirmed = Invalid

** Changed in: upstart
   Status: Confirmed = Triaged

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-01-18 Thread Pete Savage
should fix

https://bugs.edge.launchpad.net/ubuntu/+bug/130442

and

https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/73025

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-01-18 Thread Pete Savage
Scott,

It caused me a fair amount of worry, when I thought my machine had
hacked binaries ;)

Pete

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-01-18 Thread Scott James Remnant
Well known bug in Upstart, simply due to its utter lack of utmp handling
-- we've known that it behaves like this since edgy, but figured nobody
would probably notice in practice.

It's on the TODO list to fix, but pretty low priority.

** Changed in: upstart (Ubuntu)
Sourcepackagename: procps = upstart
   Importance: Undecided = Low

** Also affects: upstart
   Importance: Undecided
   Status: New

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-01-17 Thread Koen Beek
behaviour confirmed on gutsy amd64

2.6.22-14-generic #1 SMP Tue Dec 18 05:28:27 UTC 2007 x86_64 GNU/Linux

** Changed in: ubuntu
   Status: New = Confirmed

** Changed in: procps (Ubuntu)
Sourcepackagename: None = procps

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 183729] Re: utmp not cleared on tty logout

2008-01-17 Thread RobC
I also have this problem on edgy-server i386
2.6.17-12-server #2 SMP Tue Dec 18 02:13:45 UTC 2007 i686 GNU/Linux

-- 
utmp not cleared on tty logout
https://bugs.launchpad.net/bugs/183729
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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