Questions tagged [shutdown]

a command to turn off or reboot the system

538 questions
29
votes
5 answers

Is it possible to stop a shutdown command?

Assuming you've just entered the command shutdown -h now (or something equivalent), is there realistically anything you can do (if you're quick enough) to prevent the machine shutting down?
Jonathan
  • 391
16
votes
2 answers

Is halt the same as "shutdown -H" and poweroff the same as "shutdown -P"?

I haven't found a clear answer to the differences between the two options to the command shutdown. Is halt the same as shutdown -H and poweroff the same as shutdown -P?
Tim
  • 101,790
8
votes
3 answers

shutdown, but still allow new logins

I have a Linux VM on AWS in EC2 that starts up, performs a task, and then shuts itself down. I am issuing the shutdown command like this: shutdown -h 5 I have a 5 minute delay to give myself time to ssh into the server and cancel the shutdown if I…
Jeff
  • 183
5
votes
2 answers

Configure power button to shutdown on Debian

I use Debian and I want my power button to shutdown the PC. Currently it sleeps, when I press it. Is there any command for it to make it shutdown?
user49418
4
votes
2 answers

Is running "sudo sync" and removing power dangerous for my system?

I run an Ubuntu system, and it sometimes takes a while to shut down. Apparently, GNU/Linux attempts to, in a nutshell, stop all running processes, flush the filesystem journal, and then cut off the power. My reasoning is that, when power is…
fouric
  • 2,281
4
votes
2 answers

Clean shutdown, run sync after umount

Does it make any sense to run sync after umount during a clean shutdown? I assume that umount will write to disk any cached data. The only odd case I can think of is when you have some loop device (like a LUKS container) on the top of your real…
Pierre B
  • 2,213
2
votes
0 answers

Weird characters (^@ and ū) at shutdown

Asking a question that's been bugging me on/off for a while. I have noted the above symbols (^@ and ū, sometimes only one of the two, sometimes both like in the screenshot above) at shutdown when removing plymouth (using esc). I think that I may…
Huria
  • 23
2
votes
1 answer

I'm getting a console screen when shutting down my Pop OS

When I shut down my Pop OS, for a fraction of a second the screen turns into a console and prints some statements before shutting down. This happens very fast, and it's impossible to read or capture and I can't find anything referring to this. All…
2
votes
1 answer

Message after sudden shutdown

After the computer shuts down suddenly unexpectedly without notification, is there a way to know the reason (read messages) the next time when I boot? My computer frequently shuts down, and I don't even know if it is a software problem, a hardware…
sawa
  • 872
2
votes
0 answers

Ubuntu 12.04 / Elementary OS - Shutdown Problem / Logfiles

I have new Desktop PC on which I've installed Elementary OS, based on Ubuntu 12.04 LTS. The problem: the system doesn't shut down as expected: When using the 'Shut Down' option from the main menu, or typing $ sudo shutdown -P now in a terminal…
Gisela
  • 211
2
votes
1 answer

Shutdown log Linux UserName

Can I know who issued the shutdown command on any *nix system in a multi-user system? I want to know the name of the user who issued the particular command.
1
vote
1 answer

Hook shutdown script to shutting down sequnce

Is it possible to hook some script to shutting down sequence for Linux? To give you a bit more context processes of nodes of the cluster are started as processes from cluster -master. They are not running as services. However if someone restart a…
jaksky
  • 407
1
vote
1 answer

Giving a script enough time to finish before shutting down

I built a little linux-based device that has an eInk screen. It seems that it may increase the lifetime of the screen if I can blank it before the computer shuts down. (EInk passively continues displaying an image even without power, but the image…
user39248
1
vote
1 answer

Shutdown does not power off. Why?

I am running Ubuntu 16.04 LTS and I am having problems shutting down and restarting the computer. I trigger a shutdown, the computer eventually says Reached target shutdown and halts. It does not power off. So, what problem may I have and what…
1
vote
0 answers

Delayed shutdown re-executes on restart

I am trying to allow my system (OSMC on RPi3) to run for only 90 minutes in day and then shutdown (to restrict my kids). I used shutdown -P 90 on rc.local. But if system is shutdown before 90 minutes the command is reexecuted on next restart, even…
Kkhan
  • 11
1
2