Dumas Patrice <dumas@centre-cired.fr> wrote:
> On Tue, Dec 04, 2001 at 01:09:03PM -0500, Paul Jarc wrote:
>> Right, but getty only handles half of the accounting, at login. init
>> handles the other half at logout, and it uses the inittab id field to
>> find the record it's supposed to clean up.
>
> Yes, but if I am not wrong, init doesn't use the utmp record to find that a
> process has to be killed, but some information in memory.
Right; that's for changing runlevels. But when the process exits on
its own (e.g., when you log out), init marks the utmp record. It
needs the id field to update it correctly.
> I checked, it seems that I don't have any utmp accounting, as I have nothing
> in /var/run and most of the filesystem is read-only (except /tmp and
> some files/dir linked to /tmp, like /var).
What do "w" and "who" say?
paul