/sbin/reboot doesn't work
My headless server doesn't reboot properly. When I /sbin/reboot, the shell session is disconnected, the system becomes unresponsive, but the system does not restart. It doesn't powerdown, either.
I didn't have this issue with other distributions so I don't expect this to be a hardware issue, though I don't know what the issue is. Any ideas?
About this post
- Posted
- Archived
- Score
- 11 · 100% up
- Kind
- Text
- ID
- t0tea
17 comments
I've seen this before (details are fuzzy, I reboot a LOT of machines), you might try using
shutdown -r nowinstead... Sometimes reboot doesn't actually do a halt like it's supposed to, although I'm not sure why.I'll try that tomorrow night when I have physical access to the box and report back. Thanks!
Nope, same problem.
This is a long shot, but I once had the reverse problem, where my system would reboot whenever I tried to
haltit. The issue was that I added aRUNLEVEL=$(runlevel)in my rc.conf that buggered up initscripts, since they use that variable internally.So if you're doing anything fancy in rc.conf, see if you're accidentally clobbering any variables used by
/etc/rc.*.Also, in addition to checking the behavior of
shutdownandpoweroffas suggested by others, checkinit 6's behavior as well.No, nothing fancy in rc.conf. Just loading daemons and services. I'll try the other commands when I have physical access to the machine tomorrow night. Thanks!
There have been some issues with this in the past. Mostly related to network filesystems not being unmounted properly or processes somehow managing to escape our killing spree before shutdown. To the best of my knowledge, all problems were fixed in the March update of initscripts, so you might want to make sure that you are up-to-date.
Yeah, it turns out there are some messages in my everything.log that make it look like a partition isn't being unmounted properly though it's a local partition. I'll look into initscripts. I'm updated, but maybe I have a pacnew I haven't dealt with.
Should not be necessary to deal with any .pacnew files afaik. If you paste any log messages I could have a look.
check you logs (in
/var/log/everything.log) for weird things that might be happening. Doespoweroffwork? Doesshutdownwork?Here's everything.log from just before the last reboot. It looks like there is some difficulty unmounting a partition, as others have suggested. What might I do about it?
By the way, I do have TrueCrypt and some encrypted partitions, but none of them are mounted. I rarely mount them and, when I do, I unmount when I'm through.
I've had this problem from time to time when I didn't unmount a Win7 shared folder first.
Yeah, no mounted remote volumes.
can you provide some more details:
what was this system doing?
what are your mounts and types?
desktop applications or server?
Thanks!
Why not this in your .bashrc?
alias reboot = 'shutdown -r now'
alias /sbin/reboot = 'shutdown -r now' # may need to escape the /'s
Unfortunately, shutdown -r now also hangs. It must be related to the issue I found in everything.log