Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

safe reboot from command line?

Featured Replies

Can someone please tell me the proper way to safely reboot my server from the command line?  Unfortunately I cant get the SimpleFeatures GUI to load so i have to reboot my server.  Without the SimpleFeatures GUI i will need to do this via a command line.  I am running the latest 5.x rc.

 

I know that the powerdown command has worked for me in the past but I need to ensure that the system is rebooted and not shut down.

  • Author

so /sbin/powerdown will reboot the server?  not just power it down?

so /sbin/powerdown will reboot the server?  not just power it down?

It will probably power it down if just invoked as I described.

 

To reboot, I think you can add a "-r" option to it (disclaimer, I've never tried it, and it entirely depends on your hardware, since the -r is eventually passed to the native powerdown command, and to it, -r indicates reboot.)

/sbin/powerdown -r

No it will power down. Follow the rest of Joe's instructions to reboot instead.

 

Tapatalk from CM10.1 Kindle

 

Well Joe beat me to the reply. I would be interested in the -r option. Let us know if it works.

  • Author

ok so I just ran it with the -r and so far this is what I have...

 

Capturing information to syslog. Please wait...
version[19198]: Linux version 3.4.36-unRAID (root@Develop) (gcc version 4.4.4 (GCC) ) #1 SMP Wed Mar 20 12:54:40 PDT 2013
ls: cannot access /dev/hd[a-z]: No such file or directory
ls: cannot access /dev/hd[a-z]: No such file or directory
/etc/rc.d/rc.unRAID: line 84: ${FILE}: ambiguous redirect
/etc/rc.d/rc.unRAID: line 84: ${FILE}: ambiguous redirect
/etc/rc.d/rc.unRAID: line 84: ${FILE}: ambiguous redirect

 

and now its just hanging - no other response in telnet session for a good 20 minutes now.

ok so I just ran it with the -r and so far this is what I have...

 

Capturing information to syslog. Please wait...
version[19198]: Linux version 3.4.36-unRAID (root@Develop) (gcc version 4.4.4 (GCC) ) #1 SMP Wed Mar 20 12:54:40 PDT 2013
ls: cannot access /dev/hd[a-z]: No such file or directory
ls: cannot access /dev/hd[a-z]: No such file or directory
/etc/rc.d/rc.unRAID: line 84: ${FILE}: ambiguous redirect
/etc/rc.d/rc.unRAID: line 84: ${FILE}: ambiguous redirect
/etc/rc.d/rc.unRAID: line 84: ${FILE}: ambiguous redirect

 

and now its just hanging - no other response in telnet session for a good 20 minutes now.

Assuming it stopped the array, (check using

cat /proc/mdcmd | grep mdState

as stated above) you can probably just type

reboot

at this point.  (Obviously, it did not shut-down.  Also obvious, the "-r" option to rc.unRAID (part of clean powerdown) is broken)

  • Author

My shares are actually still accessible from my windows machine so it looks like the array is still up but the telnet session has not returned to the prompt yet. It is just hanging there. 

Do you have any files open anywhere? Close them if you do. Close any open shares you have open in Windows. Make sure you are in the root directory in your telnet session (type "cd /" to go to the root directory) as even accessing a share through telnet can prevent the array from stopping. Also check to make sure there aren't any plugins or anything keeping the array from stopping. Type ps-ax and see if you see any processes from any plugins you have running. If there are, kill the process by typing "kill" and the PID number.

  • Author

My telnet session has not returned to the command prompt yet though. Should inopen another command prompt to do this?

My telnet session has not returned to the command prompt yet though. Should inopen another command prompt to do this?

yes, or try

control-C

  • Author

control c didnt want to work for me.  it just put a ^C in the telnet window.

 

so i did a ps -ax and theres a whole bunch of items listed - how do I know which ones I have to kill?

  • Author

ok i got it - i found this...

 

26858 ?        Sl    13:43 ./Plex Media Server

 

and once i killed it the server commenced rebooting.

 

 

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.