Questions tagged [application-shutdown]

A graceful termination of the application, either in response to some input or by internal logic. Usually applied for applications that need to run certain code in order to terminate in consistent way.

170 questions
0
votes
0 answers

How to get notified in SpringBoot about an initiated shutdown

since its 2.3 release, SpringBoot has the feature called "graceful shutdown". When a certain signal is received by the JVM, SpringBoot executes some code (because it registers a callback within the JVM) so that the application is shut down…
fml2
  • 190
  • 11
0
votes
0 answers

Postgres DB shut down automatically on Ubuntu

I am running SpringBoot application deployed using Docker on Ubuntu. I am using Postgres 14 database. I observer that sometime Postgres database shut down itself and application stops functioning. This is the message i see in the logs at the time of…
0
votes
1 answer

Possible causes of an java application server's instance sudden shutdown

Given that I'm developer and knowledge of app servers is scoped to the basics such as deploying, declaring / mapping resources. My first step is to investigate the app and server logs (sysout and syserr) to find any clues and see the last thing the…
0
votes
1 answer

How can we report to our customers that the orders are closed in our react native app?

I am making a react native app to deliver homemade snacks by taking orders the previous day. Whenever I am not available, how can I notify my customers that I couldn't take orders? There are no push notifications in my app. Do I have to shutdown my…
Madhuri
  • 1
  • 2
0
votes
1 answer

How to check if there are any active windows open in Python?

I'm trying to write a Python script where I try to check if any application, besides the current one, is active. If there are any other open windows, I want a pop up question that asks me if I want to close the running applications. I now found the…
Saerlin
  • 1
  • 1
0
votes
1 answer

How to catch Delphi App shutting down when run in IDE?

Scenario Using Delphi 2009 on Windows 10 I have an app that performs shut down operations such as logging and database manipulation. Anywhere the user is able to exit the app I call Form.Close on the main form which calls a procedure to do the…
user2834566
  • 775
  • 9
  • 22
0
votes
0 answers

Capturing the OnShutdown event in a .Net 6 Windows Service

I have experience building Windows Services in .NET Framework 4.6 and Visual Studio 2017 – depending on the business logic complexity, they are really easy. I’m writing a new Window Service and, moving with the times, I’m writing it in .NET 6 and…
Chuck Bevitt
  • 535
  • 4
  • 13
0
votes
1 answer

Android: Calling finish sometimes closes whole app

I have this strange behavior. My app has several activities that the user can navigate back and forth between. The app starts with a spash screen, and after a few seconds you get lunched into the main activity. The splash screen is then removed from…
0
votes
1 answer

JMS DefaultMessageListenerContainer not able to shutdown on Spring application context.close()

I am listening to the Solace dynamic topic using spring integration as below:
0
votes
1 answer

Tell Spring not to invoke shutdown on beans of a specific type

On application close, each singleton bean is destroyed by DefaultListableBeanFactory.destroySingletons(). If the bean has a public void no-arg method called shutdown, then it will be invoked. I have some 3rd party beans, all of which implement a…
whistling_marmot
  • 3,561
  • 3
  • 25
  • 39
0
votes
2 answers

Is there a way that an application or a system to update without shutting down?

I work in a hospital where the system shuts down when updating. making all orders hanging with no approvals or modifications. considering it's a hospital, this is a huge problem. so, my question is how can we update the system without it shutting…
0
votes
1 answer

How to write python tornado test to assert the ioloop has shutdown?

I have some code that will intercept SIGTERM/SIGINT and will instruct the tornado ioloop (which is a wrapper around the asyncio loop) to wait for inflight requests to complete before shutting the tornado ioloop down (see below). """signals module…
Integralist
  • 5,899
  • 5
  • 25
  • 42
0
votes
1 answer

Preventing WinForm application shutdown not working

I'm using the following c # code to temporarily block the shutdown of a WinForm application without success, what I observe is that the System doesn't shutdown at all, probably because the work I have to do when receiving the shutdown notification…
Francesco
  • 1
  • 1
0
votes
1 answer

ERROR! MariaDB server process #{pid} is not running

MariaDB 10.1.41 run on Mojave MacOS MacBook. When I take it up by mysql.server start Everything is ok, PID file is created, process is running, connections are allowed, no errors in log, everything works ok. But when I want to shut it down with…
Voult
  • 43
  • 1
  • 6
0
votes
2 answers

Spring - execute query before application shutdown (tests)

I'm running SpringBoot 2.1 with Sprind Data JPA/Hibernate as persistence layer. I run into problem to succesfully run query, in my tests, before application shutdown. Details: During application context startup I'm executing a query via JPA (let's…