cancel
Showing results for 
Search instead for 
Did you mean: 

How does Shutdown log works

 
kdclster
Occasional Visitor

How does Shutdown log works

Hi,

 

My /etc/shutdownlog is not getting updated on one of my server. I have tried restarting the syslogd .. but no luck.

Can someone help me to understand how does shutdownlog gets update & how to fix that.

 

Thanks

kdclster

3 REPLIES
Dennis Handly
Acclaimed Contributor

Re: How does shutdown log works

When was the last entry?

Every time your execute shutdown(1m) it should be updated.

kdclster
Occasional Visitor

Re: How does shutdown log works

Below are last few entries .. it is not reporting the recent shutdown information.

05:25 Sun Oct 18, 2009. Reboot:
05:59 Sun Oct 18, 2009. Reboot:
22:45 Tue Jun 12, 2012. Halt: (by xyz!root)
01:25 Sat Jun 23, 2012. Reboot: (by xyz!root)
07:48 Fri Dec 14, 2012. Reboot:
Ajin_1
Valued Contributor

Re: How does shutdown log works

# touch /etc/shutdownlog

# chmod 644 /etc/shutdownlog


Then wait until a programmed shutdown or reboot occours and watch if it worked...

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.