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.
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.