Jump to content

how to gracefully shutdown without emhttp


shooga

Recommended Posts

I've recently updated to v6.0.1 and it's been going great except for this hiccup. The web GUI was inaccessible and I noticed that emhttp was at 100% CPU (via top). Tried using the powerdown script but it didn't seem to do anything. Also tried killing emhttp and then running the powerdown script, but that didn't work either. Did some searching and it looks like the powerdown script may not work when emhttp has crashed or been killed.

 

What's the best way to gracefully shutdown now that emhttp is killed? I have docker enabled.

Link to comment

Not really sure. I have been using it heavily over the past 3 days while getting it setup, installing dockers, etc. Got it all just how I wanted it yesterday. When it locked (this morning) I had just sat down at my PC and clicked in the web GUI from dashboard over to main. It had finished a parity check over night, but that was several hours before the freeze.

 

It's still running if you'd like me to grab logs or anything. I'm happy to help debug.

 

Also, if you can point me to a shutdown procedure I'd much appreciate it. I've used this in the past, does it still apply to v6.0.1 with docker: http://lime-technology.com/wiki/index.php/Console#To_cleanly_Stop_the_array_from_the_command_line

 

 

Link to comment

It would be something like this:

 

/etc/rc.d/rc.docker stop
samba stop
umount /mnt/user
umount /mnt/*
sync
mdcmd stop
reboot

 

Some of those command might appear to 'fail' depending on state of server.

 

If there are VM's running, may have to stop those too.

If there are plugins they might have their own requirements for shutting down.

 

 

Link to comment

Thanks for the support. It's back up now and seems ok, but apparently didn't shutdown gracefully because it kicked off a parity check. I'll let it run.

 

The only issues I had with your reboot procedure were: needing to kill smdb in order to release the user shares, and mdcmd gave me a command not found.

 

Thanks again. Hopefully this was a fluke.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...