does reboot update wtmp?

Asked by Ivars Strazdiņš on 2008-03-30

does reboot command update wtmp record before actual reboot or shutdown?
"traditional" reboot command has "-w" switch which does exactly that. Looks like it does not and reboot's current behaviour causes problems for accounting utilities like sac which rely on information in wtmp file.

sac doesn't know if the system has been halted until you boot it up again, showing large time discrepancies.

Am I correct and should I fill a bug report/enhancement request?
Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
upstart Edit question
Assignee:
No assignee Edit question
Last query:
2008-03-30
Last reply:
2008-04-01

Neither upstart's reboot or shutdown commands write to wtmp or utmp.

Can you help with this problem?

Provide an answer of your own, or ask Ivars Strazdiņš for more information if necessary.

To post a message you must log in.