Shutdown problem

Njanja

Dabbler
Joined
Jun 11, 2016
Messages
22
Hello,

When I turn off my NAS, I get this message (see picture). Then I wonder, can I do something about it or do I have to reinstall everything
 

Attachments

  • Image.jpeg
    Image.jpeg
    263.5 KB · Views: 179
Joined
Jun 2, 2019
Messages
591
What HW and SW config?

What method did you use to shutdown?
1. GUI
2. Power button
3. Shell command

What happened when you pressed "any key?"
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
If I run the shutdown -h now command from the command line in FreeBSD / FreeNAS / TrueNAS, it did something like that if I remember correctly.

However, if I use shutdown -p now it does the correct thing.

Just a slight difference from Linux.
 

Njanja

Dabbler
Joined
Jun 11, 2016
Messages
22
HI
I use Cron Job command "shutdown -h now", from another nas.
Have two identical NAS, and on one works, while on the other does not.
What are the differences between shutdown -p and shutdown -h?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
-h - halt the operating system
-p - power off with ACPI

Code:
man shutdown
[...]
     -h      The system is halted at the specified time.

     -p      The system is halted and the power is turned off (hardware
             support required, otherwise the system is halted) at the
             specified time.

     -r      The system is rebooted at the specified time.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Just try "-p". You can read the manual page if you want:

shutdown(8) [freebsd man page]

Some systems just don't do the "right thing" when shutting down using "-h", under FreeBSD. But, it appears "-p" always does the "right thing".
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
-h never powers off. That is the "right thing" because it is the intended and documented behavior.
 
Top