Questions tagged [shutdown]

114 questions
2
votes
2 answers

Shutdown all docker containers

I just discovered that service docker stop on Ubuntu 18.04 doesn't shutdown all running containers. I can't control them anymore but the containerd-ship processes and everything that's inside the containers is still running (but not reachable…
Daniel Alder
  • 545
  • 1
  • 10
  • 19
1
vote
1 answer

how to shutdown a VM on hyper V at a certain time?

I wasn't able to find anything online, with physical servers I could run something like shutdown /s /f /t 1000 or use task scheduler. What I'm looking to do is shut down a VM but want to shut down the VMs just before the physical is shut down (site…
Matthew
  • 135
  • 10
1
vote
1 answer

Any downside when shutting down EC2 instances of an auto-scaling group?

I want EC2 instances to auto-terminate after 24h. I do this with a script that is executed at instance launch: shutdown | at now + 24 hours The instance shuts down and the EBS volumes are terminated when the instance is terminated, so that's…
Manuel
  • 225
  • 3
  • 13
1
vote
0 answers

unfriendly shutdown of PCs / windows 7 / eventvwr unable to report IP of initiator

In a sub-network of 30 PCs + 1 teacher PC, a PC has been shut down 2 times. I suspect a student to run some unfriendly "shutdown -i". I have connected myself on that PC (local admin mode) and I used eventvwr / windows log / system / filter 1074. I…
1
vote
2 answers

Shutdown ESXi 6.7 with a script via SSH without entering maintenance mode

I'm trying to write a script that ssh's to an ESXi 6.7 and shuts down the host and also shuts down the VMs according to the current system shutdown policy. I'm running Dell customized image ESXi 6.7 in a Dell R710 with a dual Xeon X5650 and 144GB…
ppsilva
  • 41
  • 1
  • 1
  • 7
1
vote
0 answers

EventLog Windows Event - Why is event #6008 logged even after normal shutdown and restart?

I have been restarting and shutting down the machine through proper steps, ie, using start button, using command line and using Alt+F4. But, shut down event tracker is not logging any events. On windows start-up, EventLog is registering error #6008…
1
vote
1 answer

Is 2250 a valid time interval to the shutdown command on CentOS/RedHat?

I need to shut down all machine in a site - on a Sunday. I created a script (at bottom) that will execute the following on each machine, on the preceding Friday: command="hostname ; sudo shutdown -h 2250" ssh -o StrictHostKeyChecking=no -o…
boardrider
  • 949
  • 2
  • 18
  • 29
1
vote
2 answers

Can I uncleanly close a TCP connection, to mitigate a denial-of-service attack?

I work on a web service which could be the target of a denial-of-service attack. We have in place some mitigations against "SYN flood" style attacks. But there are other "application-level" attacks against our service, where a malicious/broken…
Jim Fisher
  • 11
  • 1
1
vote
1 answer

Windows unforced (not forced, graceful) restart (reboot)

I wish to restart Windows 7 x64 by schedule, but the shutdown process needs not to be forced, but applications allowed to end normally. I have used scheduled task and system utility shutdown.exe with arguments /r /t 60 /d p:8:0 and there are no /f…
green
  • 121
  • 6
1
vote
1 answer

How to reboot from a chroot environment?

I have a kickstart file that I use to install CentOS 7. I run some scripts in the %post section of the kickstart file. In the script, there is a checking for the compatibility of the machine, and if the checking fails, I need to reboot/shutdown that…
Vishnu
  • 711
  • 2
  • 8
  • 15
1
vote
1 answer

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 the -p parameter to the service. As the…
1
vote
0 answers

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/shutdown and BMC has to know it ? Does BMC have…
1
vote
1 answer

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̶ ̶s̶h̶u̶t̶d̶o̶w̶n̶ (it seems I am having issues too with…
riahc3
  • 505
  • 5
  • 11
  • 29
1
vote
3 answers

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 program using system.net.mail. The batch files work…
1
vote
1 answer

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 "Disconnect" error message. This basically…
Oliver G.
  • 115
  • 1
  • 8