Questions tagged [shutdown]

104 questions
104
votes
5 answers

Best way to gracefully restart CentOS?

I always used the command: shutdown -r now However, sometimes that causes MySQL issues. What's the most graceful way to restart CentOS? I've seen: reboot and halt How can I gently reboot the machine?
User
  • 1,365
  • 3
  • 12
  • 17
59
votes
6 answers

"reboot" or "shutdown -r now": what restart command is safer?

We have in our organization around ~500 RedHat Linux machines. On all the machines we installed applications and services under /etc/init.d, and oracle RAC servers. We intend to perform yum updates on all machines and after that take a reboot. So I…
dandan
  • 1,021
  • 4
  • 13
  • 21
34
votes
4 answers

Suppressing the "reason" for shutdown on Windows Server

How can I suppress giving a reason for shutdown on a Windows Server host? Specifically, on 2008 R2, but all versions back to 2003 and up to 2012 would be appreciated.
13
votes
1 answer

Graceful shutdown of Kubernetes cluster

We have a 4 node Kubernetes cluster, installed using Juju 2.0 and the official canonical Kubernetes charm. The sole purpose of this very local and private installation is development and testing. One of the biggest and documented issues of this…
13
votes
2 answers

VM Inaccessible

So I had to remotely shut down my servers last night as the air conditioner crapped out on us. I shut down the VMs and then the hosts. Fired up the 2 hosts today which auto start the VMs. Datastores for the VMs are isci LUNs located on a Synology…
Reedee
  • 361
  • 1
  • 2
  • 11
12
votes
3 answers

How can I predict systemd's shutdown order?

Is there a way to get systemd to tell me the rough order in which it will shutdown services when I cleanly shut the whole system down? Since systemd will shut things down in parallel, I appreciate there is no way to know the exact order, but it…
Adam Spiers
  • 570
  • 1
  • 4
  • 13
12
votes
3 answers

Is there a safe way to cancel updates during windows shutdown

I have installed a new windows machine and configured windows update to automatically download updates. I need to quickly reboot the machine and I forgot to click the fly out window that allows the system to shut down without installing updates. …
Mark Arnott
  • 972
  • 4
  • 10
  • 18
12
votes
2 answers

Suddenly, shutdown command can't be found anymore

I logged in to my Debian 7 server, did an upgrade using apt and wanted to shutdown+reboot using shutdown -r now as i did a lot of times before. This time, the shutdown command can't be found anymore. I've already read somewhere that i can try it…
TheJeed
  • 231
  • 1
  • 3
  • 9
10
votes
4 answers

Do Hyper-V Virtual Machine Guest Operating systems need to be shut down before restarting Windows Server 2012 R2 they are running on?

I am fairly new to using Hyper-V. I am trying to learn the best practice for shutting down and restarting my server when virtual machines are running on it. I have a physical server running MS Windows Server 2012 R2. I have two Virtual Machines…
9
votes
2 answers

Windows 2012: how to make power button work in every cases?

I need some Windows 2012 servers to be shutdown properly with the power button. If nobody is logged, the power button correctly shuts down the server If somebody is logged without a blocking program, it's okay too But: if a session is locked,…
Gregory MOUSSAT
  • 1,737
  • 2
  • 25
  • 48
9
votes
1 answer

What is the difference between init 6 and reboot on Red Hat / RHEL / CentOS?

In Linux, the init 6 command gracefully reboots the system running all the K* shutdown scripts first, before rebooting. The reboot command does a very quick reboot. It doesn’t execute any kill scripts, but just unmounts filesystems and…
ujjain
  • 3,963
  • 15
  • 50
  • 88
7
votes
3 answers

Automatic power on after graceful shutdown on UPS

This is my basic setup: I run a server (DL380 G7; linux 3.13 kernel) that is host to ~10 virtual machines It is set for automatic power on I use NUT for UPS management Graceful shutdown duration of the Host (including first shutting down the VMS)…
martin
  • 73
  • 1
  • 1
  • 5
7
votes
1 answer

Is it safe to remove power from a linux computer in run level 0?

I am working on power supply to a Raspberry Pi where changing the state of one of the GPIO lines shuts off power immediately. Is it safe to do this in run level zero, or is there more shutting down to be done from there before power off? If not is…
Xian
  • 197
  • 6
6
votes
1 answer

How to do docker-compose down without the config file that made the up?

When you do docker-compose up, it's based on a docker-compose.yml file. This usually brings up a network, builds and runs multiple services. If you do the up with the -d flag, the docker-compose client detaches and let the servers alone. If you do a…
5
votes
3 answers

Unexpected Windows Server 2016 Shutdown: winlogon, NT AUTHORITY\SYSTEM, 0x500ff

We have a fleet of AWS EC2 instances running Windows Server. Since moving from Windows Server 2012r2 to 2016, we've encountered an issue where a server is shut down for unknown reasons. After an exhaustive inspection of event logs, the only…
1
2 3 4 5 6 7