The tag has no usage guidance.

learn more… | top users | synonyms

38
votes
4answers
6k views

“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 ...
24
votes
4answers
124k views

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 ...
20
votes
4answers
4k views

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.
11
votes
2answers
487 views

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 ...
8
votes
3answers
4k views

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 ...
7
votes
1answer
274 views

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

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 ...
7
votes
3answers
24k views

Is there a safe way to cancel updates during windows shutdown [closed]

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 ...
5
votes
2answers
6k views

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 ...
4
votes
4answers
6k views

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 ...
4
votes
3answers
2k views

Windows Server 2012 R2 Shutdown Event Tracker Details

Call me masochist, but I actually like entering the details when shutting down a server. Windows Server 2012 R2 doesn't seem to provide a field to do that, though. Is there any way to add "reason" ...
4
votes
1answer
121 views

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 ...
3
votes
2answers
1k views

Is Shutting Down a Spot Amazon EC2 Instance Clean?

Not sure if this is supposed to be on SuperUser or here, but here goes: Q. If my spot instance is automatically terminated due to my max bid being exceeded, is it a clean shutdown -- as if a user ...
3
votes
1answer
130 views

How to find the ip address of the pc that sent a shutdown command?

I'm a system administrator in a school. We have a classroom with 20 PC's in a domain, and all PC's use the same user to log in. Sometimes students use the shutdown command to shut down the PC's of ...
3
votes
3answers
101 views

Linux guest graceful shutdown in Hyper-V

What mechanism Hyper-V use to signal a Linux guest to gracefully shut down? Somehow CoreOS does gracefully shut down, but another Linux doesn't (it is just abruptly powered off)
3
votes
1answer
100 views

PowerChute vMA server shuts down ESXi host after boot

I've ran into a critical problem first time installing and configuring a UPS connected to a server. Whenever I boot up the vMA server, ESXi starts shutting down all the VM's and then itself. It's ...
3
votes
3answers
706 views

Add a Message to be Displayed During Shutdown of CentOS 6 and 7

When issuing a reboot or shutdown I see: [kbrandt@ny-kbrandt01: ~] sudo reboot [sudo] password for kbrandt: Broadcast message from kbrandt@ny-kbrandt01.ds.stackexchange.com (/dev/pts/3) at 14:50 ...
2
votes
2answers
2k views

Log Windows 7 Shutdown Process

Are there any utilities that can log the windows 7 shutdown process in a 'debug' mode? Recently several of our Windows 7 workstations started taking over twenty minutes to reboot, and while we've ...
2
votes
1answer
16k views

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 ...
2
votes
2answers
170 views

best practise for a shutdown strategy for server with critical processes

Assume a Window Server with running services and running console applications The nature of this software is very critical. Operations take up to a few minutes and should not be terminated. What ...
2
votes
4answers
7k views

Shutdown clients when no one is logged in at a specified time

At our company, the people stop working at 7PM. At 8PM we run a scheduled task with GPO to warn the logged-in user that the computer is going to shutdown. This works fine. When no one is logged-in ...
2
votes
1answer
41 views

Is there a Difference between “logoff” and “shutdown -l” -command in Windows?

Is there a Difference between logoff and shutdown -l -command in Windows? They both logoff the current session. (Background: i had a Problem where the software in the costumers remotesession (w2k12) ...
2
votes
1answer
1k views

Can't shut down HyperV VM with Powershell despite admin rights

I am attempting to use a script that shuts down my Hyper-V VMs, copies their VHDs to a target share, then boots them back up. I found the script on spiceworks just a couple days ago. I always receive ...
2
votes
2answers
1k views

Red hat script on shutdown

I need to backup some files every time i will shutdown a Red Hat enterprise 4 Linux. I thought about make it with a script in /etc/rc0.d but shutdown process should wait for my script to finish. So ...
2
votes
0answers
627 views

Configuring apc ups with ap9630 network management card

I have an apc smt2200 with a network management card. It has a web server on board from which I can configure how it works. Some servers are powered by that ups and they all have PCNS software which ...
1
vote
1answer
128 views

How long do daemons have to exit when the server shutdown signal is received?

As we are developing a complex set of services on Linux, we developed a tool that starts them one by one. One of the many considerations for creating such a tool was the order in which items can be ...
1
vote
1answer
345 views

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. ...
1
vote
1answer
2k views

How to sequence a proper shutdown and startup of web services with systemd?

I am trying to structure the shutdown and startup of Apache, PHP-FPM and MariaDB services using systemd: These are the additional configuration files in /etc/systemd/system folder: # httpd.service ....
1
vote
1answer
516 views

Gracefully logout all connected ssh users on reboot

When I reboot my Linux server (BusyBox Linux) all ongoing ssh client connections run into a stucked state until a timeout on client side occurs. There is no message sent to the ssh client to produce a ...
1
vote
1answer
241 views

Saving httpd logfiles to S3 on shutdown using s3cmd

I have an auto-scaling group on Amazon Web Services (AWS). I want to preserve the logfiles on an instance (Amazon Linux AMI) when the group scales down. My current idea is to use the s3cmd tool in a ...
1
vote
1answer
281 views

ipmitool pef temperature soft shutdown

Recently I've had the technicians switch off the cooling system in the server room, without notifying me first. Since the compute nodes do have IPMI cards from different manufacturers installed, I'd ...
1
vote
1answer
306 views

I just installed a profiler into Tomcat 7 and now I'm getting BindException on shutdown

So the HOWTO I just read says to add these JAVA_OPTS to the startup script: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=[place port number here] -Dcom.sun.management....
1
vote
1answer
557 views

Deploy a Powershell script and run on shutdown thru group policy

I have a Powershell script I need to deploy to my clients PC and then run it on shutdown. I̶ ̶k̶n̶o̶w̶ ̶i̶t̶ ̶i̶s̶ ̶p̶o̶s̶s̶i̶b̶l̶e̶ ̶t̶o̶ ̶r̶u̶n̶ ̶P̶o̶w̶e̶r̶s̶h̶e̶l̶l̶ ̶s̶c̶r̶i̶p̶t̶s̶ ̶o̶n̶ ...
1
vote
1answer
327 views

Prevent HDDs from spinning up before shutdown in Ubuntu/ZoL/SAS2008 environment

I am running Ubuntu 14.04.2 with ZFS on Linux. As I ran out of SATA ports on my Asus M5A78L-M/USB3, I bought a Dell PERC H200 card and crossflashed it to LSI 9211-8i P19 IT mode firmware to ...
1
vote
1answer
136 views

Script before shutdown with network on

I need to generate a SMS / Email alert when the server´s UPS is finishing its charge. We have a car battery connected to the motherboard that works as a UPS (http://www.mini-box.com/M2-ATX-160w-...
1
vote
1answer
110 views

Should I turn off hybrid server with GPU on IDLE?

There is a server with 2 CPUs (Intel Xeon E5-2670, Sandy Bridge) and 1 AMD GPU (Tahiti XT Radeon HD 7970). There are also SSD (system and executable files) and HDD (heavy data) that connected to this ...
1
vote
0answers
261 views

How to verify if a Windows Server shutdown was complete on server hardware before UPS killed power?

Our Windows Server 2012 R2 machine just got its own UPS (APC Back-UPS RS 550G). I'm using the Windows release of apcupsd and since I would prefer if the UPS would turn off after shutdown I also added ...
1
vote
0answers
21 views

How does BMC know when Host initiates shutdown from its OS?

I was reading about Intel Server Management and have this question. Through BMC web one can initiate a graceful shutdown to the Host OS, this is fine. But how does it work when OS initiates a poweroff/...
1
vote
0answers
99 views

Configure JBoss7 / EAP6 to undeploy applications before shutdown

When I deploy my JEE6 application on JBoss EAP 6.3 and shutdown the server before manually undeploying the application I get unexpected Exceptions (see below). I'm looking for a way to make shutdown ...
1
vote
3answers
711 views

How do I schedule a batch file to run on startup or shutdown?

I have 2 batch files that send emails intended to notify of a server shutdown or startup. The batch files call an exe with a single argument, the message to be sent. The exe comes from a vb.net ...
1
vote
0answers
314 views

Stop automatic reboot with gpedit shutdown script in Windows 2k8

I am search for a way to validate and maybe stop an automatic reboot under windows. E.g. automatic reboot is initialized by windows update. When adding a shutdown script with gpedit this script gets ...
1
vote
2answers
1k views

How to shutdown VMware Fusion virtual machine on host shutdown

I have a Mac mini running Mavericks server. I installed the Atmail server + webmail vm [a linux centos distribution] in VMware Fusion Professional 6 with the VMware Tools addon. It works flawlessly. I'...
1
vote
0answers
200 views

Hyper-V: Monitor and restart unresponsive hyper-v guests

I'm looking for a simple solution to monitor and restart unresponsive Hyper-V guests. I only need this solution for a handful of machines, and only around ten guests. It's mostly Ubuntu guests that ...
0
votes
2answers
94 views

Batch Shutdown Linux Machines from Windows Server

I have 20 Ubuntu terminals that run RDP sessions from our RDS server (Server 2012R2). I want to shut down these machines and night and start them up again in the morning remotely, preferably from ...
0
votes
1answer
158 views

Libvirt guest destroyed after shutdown

I have created a VM withLibvirt and when I shut it down whether forcefully or with ACPI, it gets deleted. I create it: <domain type='kvm'> <name>deneme2</name> <memory>...
0
votes
1answer
46 views

“Turbo-timer” for safely shutting down after powerout [closed]

We have clients that apparently routinely kill the power to our running windows 7 platform without performing a shutdown. We have had a couple of (SSD) drive failures that we suspect are caused by ...
0
votes
1answer
825 views

Why won't this shutdown shell script work under root's crontab when the guest user is logged in? [closed]

I've got a laptop running Lubuntu 13.04 and guest account enabled. People forget to shut it down every day so I figured I'd just put a one line script into root's cron to solve that. No dice. It shows ...
0
votes
1answer
420 views

Restart Alfresco / Tomcat

When i'm trying to restart Alfresco, it stops with this message: p@p:~/alfresco-5.0.d$ ./alfresco.sh restart Using CATALINA_BASE: /home/p/alfresco-5.0.d/tomcat Using CATALINA_HOME: /...
0
votes
1answer
10k views

how to cancel an automatic restart in windows server 2012 after installing windows updates

Here's the thing - the "shutdown -a" option doesn't work, there is no "Restart Later" button, just a countdown timer of 15 minutes and no way to cancel it. What should I do? I read somewhere that if ...
0
votes
0answers
17 views

How to add developer to google cloud platform with restricted permission but he should start instance

I have hired a google cloud window server 2012 machine for one of my developer in remote location to develop. Since he is different timezone so I want him to start/stop the instance but I don't want ...
0
votes
0answers
55 views

Shutdown and poweroff linux server when no one is using it

My backup server (running Arch Linux) can be remotely powered on via its out of band power controller (HP ILO), using a simple ssh command. Several clients will backup at the same time and each will ...