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

English Edit question
upstart Edit question
No assignee Edit question
Last query:
Last reply:

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.