Skip to content

/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?

11 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
11 · 100% up
Kind
Text
ID
t0tea

Author

2
posts
53
comments
0
media
View profile

17 comments

I've seen this before (details are fuzzy, I reboot a LOT of machines), you might try using shutdown -r now instead... Sometimes reboot doesn't actually do a halt like it's supposed to, although I'm not sure why.

7 points

I'll try that tomorrow night when I have physical access to the box and report back. Thanks!

1 points

This is a long shot, but I once had the reverse problem, where my system would reboot whenever I tried to halt it. The issue was that I added a RUNLEVEL=$(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 shutdown and poweroff as suggested by others, check init 6's behavior as well.

4 points

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!

1 points

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.

2 points

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.

1 points

Should not be necessary to deal with any .pacnew files afaik. If you paste any log messages I could have a look.

1 points

check you logs (in /var/log/everything.log) for weird things that might be happening. Does poweroff work? Does shutdown work?

2 points

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.

1 points

I've had this problem from time to time when I didn't unmount a Win7 shared folder first.

2 points

can you provide some more details:

  1. what was this system doing?

  2. what are your mounts and types?

  3. desktop applications or server?

2 points
  1. Server: web, ftp, ssh, fileserver over samba, music server using Subsonic, seedbox using rtorrent.
  2. All local mounts to ext2,3,4 disks.
  3. Server.

Thanks!

1 points

Why not this in your .bashrc?

alias reboot = 'shutdown -r now'

alias /sbin/reboot = 'shutdown -r now' # may need to escape the /'s

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.