How to detect unclean shutdown?
Hello All,
I would like to know if is there any way to detect whether the last shutdown was graceful or not. Regards, Deb |
I don't know the distro you're using at the moment (maybe Ubuntu?), but for Slackware there's a straight way to detect a graceful shutdown.
If you add this line: Code:
touch /etc/fastboot I guess you can adopt this approach on every distribution, given you tailor it to your boot process mechanics. |
Hello,
Thanks a lot for your answer. It gives me the option for detecting the unclean shutdown. But at the same time, I would like to know how does ubuntu system detects the unclean shutdown. Regards, Deb |
If you're referring to the automatically performed fsck runs after an unclean shutdown, those are caused by the mount program detecting a dirty filesystem while mounting /etc/fstab contents. They're not distro specific.
|
All times are GMT -5. The time now is 06:29 PM. |