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.

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. Once the shutdown sequence has begun it can usually be stopped only by invoking the halt method, which forcibly terminates the system.

1261 questions
19
votes
11 answers

How to shutdown a computer using Python

I've written a Python script which should eventually shutdown the computer. This line is a part of it : os.system("shutdown /p") It makes some sort of a shutdown but remains on the turn-on Windows control pannel (where the user can switch the…
Ben L
  • 743
  • 2
  • 7
  • 15
19
votes
4 answers

Best way to shutdown an OSGi Container (specifically equinox)

I'm looking for a best practice on shutting down an OSGi container. Currently we are using a small launcher app which calls EclipseStarter.startup() and installs some core bundles. After that the launcher terminates. When the test GUI (running as a…
James Carr
  • 797
  • 2
  • 10
  • 21
19
votes
5 answers

How do you cleanly abort a Delphi program?

I've got a program that's having some trouble during shutdown, raising exceptions that I can't trace back to their source. It appears to be timing-related and non-deterministic. This is occurring after all shared resources have been released, and…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
18
votes
2 answers

How do I gracefully shutdown the Tokio runtime in response to a SIGTERM?

I have a main function, where I create a Tokio runtime and run two futures on it. use tokio; fn main() { let mut runtime = tokio::runtime::Runtime::new().unwrap(); runtime.spawn(MyMegaFutureNumberOne {}); …
hedgar2017
  • 1,425
  • 3
  • 21
  • 40
18
votes
2 answers

twisted: catch keyboardinterrupt and shutdown properly

UPDATE: For ease of reading, here is how to add a callback before the reactor gets shutdown: reactor.addSystemEventTrigger('before', 'shutdown', callable) Original question follows. If I have a client connected to a server, and it's chilling in…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
17
votes
2 answers

How to send Shutdown command to process through CMD Prompt on Windows

I'm currently working as software developer and I'm using bunch of tools, so I need to close them all when finished with the work. So what I have done I have created batch file with the tskill command and list of programs that i use e.g. tskill…
Senad Meškin
  • 13,597
  • 4
  • 37
  • 55
17
votes
9 answers

How to use command to shutdown grails run-app

After executing grails run-app, except using Ctrl + C", is there a command to shutdown it?
zbchen
  • 205
  • 1
  • 2
  • 6
17
votes
5 answers

How to shutdown Linux using C++ or Qt without call to "system()"?

I want to shutdown an Embedded Linux when a close button is pushed on the UI. I know I can do it with a call to system: system("shutdown -P now"); Ref: Link But knowing that using system is not advised, I'ld like to know if there is another way in…
Momergil
  • 2,213
  • 5
  • 29
  • 59
17
votes
7 answers

Jetty throws NoClassDefFoundError: org/eclipse/jetty/util/FutureCallback on shutdown

Our maven build throws at the end of the build of the shutdown of jetty a NoClassDefFoundError that I do not understand. Does anyone have an idea where this is comming from and how to fix it? Here is are the dependencies from the pom…
Johannes Pfeifer
  • 211
  • 1
  • 3
  • 12
17
votes
3 answers

Shutdown netty programmatically

I'm using netty 4.0.24.Final. I need to start/stop netty server programmatically. On starting the server, the thread gets blocked at f.channel().closeFuture().sync() Please help with some hints how to do it correctly. Below is the EchoServer that…
fh76
  • 283
  • 2
  • 5
  • 14
16
votes
9 answers

Shutdown Windows machine from linux terminal

I am running an application on linux machine. By giving the ip address of a windows machine as input, the application must shutdown the windows machine. If the machines run the same OS it is very easy but I'm confused how to do it in cross OS.
ganesshkumar
  • 1,317
  • 1
  • 16
  • 35
16
votes
6 answers

Close a WP7 application programmatically?

Possible Duplicate: Windows Phone 7 close application How do I programmatically close a WP7 application?
Vercas
  • 8,931
  • 15
  • 66
  • 106
16
votes
1 answer

Using JavaFX Application.stop() method over Shutdownhook

So im using shutdownhook to clean up. But since its not always guaranteed that shutdownhooks thread executes, should i just push this code onto JavaFX Application Thread (method stop()), which executes every time i close my application? Code is not…
Tomas Bisciak
  • 2,801
  • 5
  • 33
  • 57
16
votes
3 answers

How to shutdown Derby in-memory database Properly

I'm using derby as an embedded database. Furthermore, I'm using it's in-memory database option for my unit tests. What I can't figure out is how to properly shut down (A quick look at the code) the Derby database. I beleive I have it working for a…
Frank V
  • 25,141
  • 34
  • 106
  • 144
16
votes
3 answers

Win32 API analog of sending/catching SIGTERM

Under POSIX OS there is signal API that allows to send a signal to process to shut it down with kill and you can catch it with sigaction and do what you need; However, Win32 is not POSIX system, so: How can I handle shutdown events that may come,…
Artyom
  • 31,019
  • 21
  • 127
  • 215
1 2
3
84 85