Questions tagged [shutdown]

This refers to the process where the system state is systematically (and preferably gracefully) changed to the fully inactive state. Usually applied to complex systems, such as database, server program, operating system, virtual machine, physical computer and the like. Bypassing the shutdown procedure (immediate termination) may cause data loss or other problems.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

VMware Workstation. Can't run 3 virtual machines simultaneously [closed]

My laptop is Dell Latitude E5570 with OS Windows 10. CPU: Intel® Core™ i7-6820HQ CPU @ 2.70GHz 2.70 GHz. RAM: 16,0 ГБ. I am using VMware Workstation 16 Pro. The problem is: When I am trying to run ...
Aka_Felix's user avatar
0 votes
0 answers
44 views

MariaDB always displays message Erorr:MySQL shutdown unexpectedly

I have a database called sik. to display the phpmyadmin page is very good, and opening another database is no problem, but there is one database called sik in my database, when it is displayed My ...
Lanz King's user avatar
-1 votes
2 answers
153 views

Get last Windows/PC shutdown time with VBA

Is there a way to get the last shutdown time of Windows with VBA? I would like to follow the start and the end of the working time. The start of the working time is done, the specified excel file ...
FoFE's user avatar
  • 43
2 votes
0 answers
60 views

Preventing DLLHost Process Shutdown or Keeping Explorer Window Responsive during Long-Running IExplorerCommand::Invoke Operation in C++

I have created a class that implements the IExplorerCommand interface. The Invoke() method in this class is being called from another process (DllHost.exe). In my case DLLHost.exe is called by ...
Jean-Milost Reymond's user avatar
-1 votes
1 answer
68 views

Will my heroku app be affected by adminium shutdown?

I got a shutdown notice about adminium, but I can't tell if my app is even using adminium. It's there, but I think it might be a remnant from when I first set the app up 6 years ago. Since, I've had ...
Nick's user avatar
  • 61
1 vote
0 answers
63 views

In Swift on macOS, how can I properly catch the powerdown event from NotificationCenter?

I know this has asked before, but I have not yet found an answer that has actually helped me. What I'm trying to do is write a launchd daemon in Swift, that will catch the shutdown notification and ...
Gregorio Litenstein's user avatar
0 votes
1 answer
160 views

Powershell Script - Shutdown PC after set idle time

I have to write a PowerShell script that will automatically be sent every hour from 9 PM til 4 AM through deployment software. This script should find out how long the PC is idle and if the idle time ...
serlag8622's user avatar
0 votes
1 answer
115 views

How to catch SIGTERM signal to process stuff in app and then terminate in Java

So basically my app does some processing of stuff in intervals every 1 second. I have to implement a SIGTERM signal to my app but I have to let the stuff that is currently being processed in app to ...
essaPL's user avatar
  • 11
1 vote
0 answers
47 views

Why does Python HTTPServer.shutdown not actually shutdown the server?

Consider a toy server serving a notification that it will quit in 5s at http://localhost:48555/q and 'Hello World' elsewhere. from datetime import datetime from http.server import HTTPServer, ...
lineage's user avatar
  • 812
0 votes
0 answers
16 views

I am making a stopwatch using python but not a normal stopwatch

I am making a stopwatch using python but not a normal when we start our laptop the stopwatch get started and when we shutdown it the total time get appended to list named total time. but i ran into a ...
Vinayak Rai's user avatar
1 vote
1 answer
96 views

How do I get the PowerShell Scriptin to give me a YES or NO option when I press CTRL+C instead of closing the process directly?

I am using the following PowerShell Script to be able to shut down the computer after a certain time. # Determine the path to a file in which information about a pending # shutdown is persisted by ...
Albie's user avatar
  • 49
1 vote
1 answer
284 views

How can we create a .BAT file that can turn off the computer after a desired time and show the remaining time on each boot?

I wanted to prepare a .BAT file to automatically shut down the computer after a desired time. And according to the information I got, I was able to create a code directory like the one below. But at ...
Albie's user avatar
  • 49
0 votes
0 answers
72 views

Sending an email upon system shutdown

I'm running a flask app, but the server it's running on has mandatory system updates and restarts that I cannot disable. I'm also not able to use auto-login, so I can't just have the app restart on it'...
MrPeriodical's user avatar
0 votes
0 answers
107 views

PowerShell : intercept Windows shutdown and prevent shutdown

I have a Powershell script that runs a process undefinitely. I want it to perform a few commands before the PC's shutdown. Here is the process I would like : User clicks shutdown button Windows shows ...
Silloky's user avatar
  • 157
0 votes
1 answer
55 views

How do I make my discord bot (Discord.js v14.9.0) shutdown, while it's using PM2

I am trying to make a kill switch for my Discord Bot that uses PM2 to keep it running. After I use the command, PM2 just restarts the bot. How do I kill the process until I restart it manually? What ...
Ujaan's user avatar
  • 1
0 votes
0 answers
153 views

I'm getting an error while trying to configure MySQL 8.0.33

Beginning configuration step: Stopping the server Setting innodb_fast_shutdown to do a clean shutdown (a full purge and a change buffer merge before shutting down). Starting process with command: C:...
Bianca Khambatta's user avatar
1 vote
0 answers
54 views

Gracefull shutdown when SSE stream is openned

I have an spring boot 3 back-end application, which does serve also some Flux (SSE, https://www.w3schools.com/html/html5_serversentevents.asp ) event streams. i.e.: @RequestMapping(path = "/...
Lubo's user avatar
  • 1,631
1 vote
1 answer
41 views

How to limited producer and read messages by consumers?

I want get application producer-consumer(with shutdown by signals) with Go. A producer constantly generate messages in a queue with a limit of 10. Some consumers read and process this channel. If the ...
d-velop's user avatar
  • 111
0 votes
0 answers
55 views

Shutdown in assembly [duplicate]

I just started programming in assembly, I started with a simple program with a print, input and new line function. Then I wondered how to shutdown the machine and I found this function online: ...
Federico Occhiochiuso's user avatar
0 votes
0 answers
76 views

Trigger banner notification when user if logoff in window

is that possible to trigger window banner notification when user is logoff from the PC? In Shutdown.exe when running this command: shutdown.exe /r /t 30 /c "Hi this pc is shutting down, Please ...
lvsilver's user avatar
0 votes
0 answers
68 views

Run a Git synchronization batch file at Windows shutdown

I am trying to automatically run a batch file which synchronizes a directory in git when shutdown. batch file content: cd C:\"Program Files"\dawData git init git add -u git add . git commit -...
totoluzu's user avatar
1 vote
1 answer
63 views

There is a delayed shutdown function in windows shutdown -s -t , but is there a delayed switching-on?

For example, is there a command that allows you to turn on the computer (be it a remote computer connected to the network or your own), for example, after a reboot, after a specified, strictly defined,...
Das Alias's user avatar
-3 votes
2 answers
244 views

Blazor Server side app open in browser then shut down immediately if I'm having break points

Why does my Blazor Server side app open in browser then shut down immediately if I'm having break points? It just started to happen only when I'm having break points. Any help would be appreciated.
Wedad Shurrab's user avatar
0 votes
1 answer
21 views

Azure VM shutdown exception

I'm trying to create an automatic task for 2 DB machines in our Azure environment. I'm using the built in Microsoft tool inside of the machine properties. ( Tasks under the Autmation window). I need ...
Nahum's user avatar
  • 11
0 votes
0 answers
30 views

Surface GO 2 immediately restarts after remote shut down

As the title states. We have around 40 Surface Go 2 tablets, and we began testing WOL and remote shutdown scripts, while the WOL scrit works flawlessly the remote shutdown does not. We are working ...
arfgon's user avatar
  • 1
0 votes
0 answers
22 views

Is there a way to execute a code block when android device is about to shutdown

Is there a way for an app to detect android shutdown/restart and execute a code block? I have a problem at hand that specifically requires to send email before device is shutting down and was ...
Rizwan's user avatar
  • 70
2 votes
0 answers
156 views

Preventing Windows shutdown in Rust

I'm trying to require a user to confirm a Windows shutdown while my program is performing critical tasks. In order to do this, I want to listen for a WM_QUERYENDSESSION message (in a seperate thread ...
MrSchildkr's user avatar
0 votes
1 answer
139 views

Windows shut down through python

I'm using visual basic programs to create some files for my work, however, I'm learning python and want to use it to shut down my windows system after the visual basic program is completed execution
Abhishek Bajpai's user avatar
1 vote
1 answer
256 views

Graceful Shutdown inn Golang

I am trying to add Graceful shut down in one of my server. I know the code is working. I was hoping that after redeployment of the server, first the graceful shutdown work and then the server would ...
akash agarwal's user avatar
0 votes
0 answers
19 views

C# .NET Service is not starting after a Windows Shut Down (but it does after a Restart?)

Recently I build a C# .NET Windows Service, which actually does exactly what it should do. So, no problem there. BUT... When I start my PC again after a SHUT DOWN (Windows button), and I look ...
Dynamickx's user avatar
0 votes
0 answers
133 views

How to disable or suspend shutdown and restart? (Android 7.1.1)

The problem is that the functions I need do not always have time to complete before the device turns off. I understand that there is a server delay, etc. when prompted, but is there an option to delay ...
J-iSkELo's user avatar
  • 107
0 votes
0 answers
171 views

Suspend docker-compose container shutdown until result of a condition is true?

I have a docker-compose.yml file that defines a number of services. One is a redis instance, and another is a queue-worker. The queue-worker fetches jobs from redis and performs the necessary work. ...
Scratcha's user avatar
  • 1,371
-1 votes
1 answer
92 views

React native windows - UWP application - trying to shutdown the computer

I am trying to run a cmd command from a react native windows - UWP application that shutdowm the computer. There is any way to do it??? I have created a c# native module which creates a process that ...
שולמית טנג'ר's user avatar
0 votes
1 answer
78 views

How to identify different type of exit 'shutdown', 'restart', 'kill', 'kill -x' in python?

Is it possible to identify in the python application type of external exit/break? I would like to do different actions (release sources slow & correct/complex or fast & partly/dirty) based on ...
JIST's user avatar
  • 1,361
0 votes
1 answer
221 views

Programmatically "stop" Sagemaker instance

I can automatically shutdown a sagemaker instance as indicated here, by using lifecycle configuration https://stackoverflow.com/questions/53609409/automatically-stop-sagemaker-notebook-instance-after-...
00__00__00's user avatar
  • 4,904
12 votes
4 answers
888 views

Close TCP connection on Linux ungracefully

Is there a way to programmatically close a TCP connection in C/C++ ungracefully on Linux? For testing, I would like to simulate the case when an endpoint is just powered down without transmitting any ...
Andre K's user avatar
  • 181
0 votes
0 answers
3 views

Issue in uninstalling programs and restarting laptop and shutdown

My laptop company is lenevo (core i3) , I'm facing issues in uninstalling , installing programs and restarting and updating my laptop. I'm unable to restart because laptop keep showing loading and ...
Fatima Latif's user avatar
0 votes
0 answers
62 views

Registry key to force shutdown from a remote system

I am looking for the registry key equivalent for force shutdown from a remote system GPO setting. for some reasons I can't use GPO so if anyone knows please help. I tried to use Process monitor for ...
NaeemIjaz's user avatar
0 votes
0 answers
75 views

how to detect system shutting down event on Linux

I'm developing an application on Debian 10, My application need to saving current data to a file before shut down. I cant handle event when system shutdown, any idea to help me resolve this problem? ...
user1234's user avatar
0 votes
0 answers
72 views

How to shut down macOS from a launch daemon? And different ways to reboot

I'm looking for a low-level shut-down from my macOS launch daemon written in C++. I found out that doing the following reboots it: #include <sys/reboot.h> if(reboot(RB_AUTOBOOT) != 0) { log(...
c00000fd's user avatar
  • 21.4k
0 votes
0 answers
128 views

How to Shutdown Spring's STOMP Server (SimpleBrokerMessage) programmatically?

I've developed a Spring application that uses STOMP Server, and I would like to shutdown the STOMP server programmatically. I've tried to shutdown the application using the following code: ...
Alfa Ryano's user avatar
1 vote
1 answer
245 views

Handling Jenkins status failure from exit code of Ansible plabook

Looking to handle system reboot on Linux with Ansible & running it as part of playbook along with other asks. Seeing exit code as 4 & due to which Jenkins job is resulting in failure, though ...
vinWin's user avatar
  • 509
1 vote
0 answers
29 views

boost ssl client/server shutdown timing

I have both a boost ssl client and server. Part of my testing is to use the client to send a small test file (~40K) many times to the server, using the pattern socket_connect, async_send, ...
ProRhino's user avatar
0 votes
2 answers
229 views

Can't delete Kubernetes cluster with kops despite deleting everything at AWS

For the last two hours, I have been unable to delete a cluster with kops even though I have deleted the only EC2 instance I had as well as my S3 bucket. When I type: kubectl config get-contexts I get:...
charlesumesi's user avatar
-1 votes
1 answer
96 views

Glassfish server domain stops running for no obvious reason

I have a glassfish 4 server installed on a Linux server. Apart from the Glassfish server default domain1, I created another domain - domain4. Domain1 and domain4 have .WAR files of same application ...
norbert's user avatar
  • 29
2 votes
0 answers
500 views

Tomcat forcefully closing keep-alive connections during graceful shutdown

I'm using Embedded Tomcat 9.0.68 in a Spring Boot app. In front I have a load-balancer (not HTTP aware). Unfortunately, when scaling down the app I see some errors despite of the fact that the app ...
mv123's user avatar
  • 21
1 vote
1 answer
2k views

Handle a gunicorn worker termination from the FastAPI

A FastAPI application restarts after gunicorn worker timeout. Is it possible to handle such a signal from the FastAPI application (shutdown signal doesn't help) before the application restart? The ...
Maxim Bilan's user avatar
0 votes
1 answer
189 views

How to shutdown redis safely without data loss

I have written a script which can get really long to run, I save the steps that are passed in the redis because it's fast and has almost no overhead, but a manual reboot or a server downtime could ...
Steve Moretz's user avatar
  • 2,908
0 votes
1 answer
275 views

Random Shutdown Timer with powershell and no popup and hidden

Hi i try a cmd file or powershell file to shutdown a pc after a random time 20h and 24h with no popup message that the pc is shutting down in 10 minutes... and hidden i try this shutdown -r -t 86400 -...
hackuniverse's user avatar
2 votes
1 answer
134 views

C#: Check if the shutdown /t xx timer ist active

My goal is to check if there's an active shutdown timer initiated by the shutdown /t xx-command. I'm programming a small asp.net-website for my personal server use to shut him down. Shutting it down ...
Sum1Unknown's user avatar
  • 1,042

1
2 3 4 5
26