Questions tagged [restart]

Restart refers to the process where a software program or system is systematically (and preferably gracefully) shut down then automatically invoked to full functionality without intervention from the user.

Restart is also often referred to as reboot or reset.

Restarting a software program or system is one of the most common ways to troubleshoot problems as it will put the program or system back into a fresh and predictable state

1535 questions
8
votes
7 answers

How bad is this goto?

I created a tetris game where you can restart after a game over. I implemented this quick and dirty with a goto (see code). The Game class relies on destructors, are these called with these goto's? How bad is this goto, is it acceptable, or what…
orlp
  • 112,504
  • 36
  • 218
  • 315
8
votes
2 answers

Difference between os.execl() and os.execv() in python

Is there a difference between os.execl() and os.execv() in python? I was using os.execl(python, python, *sys.argv) to restart my script (from here). But it seems to start from where the previous script left. I want the script to start from the…
Rohin Kumar
  • 730
  • 2
  • 10
  • 24
8
votes
1 answer

rabbitmq queue clear after restart

I have installed RabbitMQ on windows server 2012 64 Bit. I Tested Publishing And Consuming Parts with Huge Data Everything is fine, the only problem i am facing is the messages in a queue are getting lost after RabbitMQServer restart. I am using…
madhu
  • 81
  • 1
  • 2
8
votes
2 answers

Restart a Python Program

I'm writing a Python program that, if the user changes settings while running it, needs to be restarted to apply the changed settings. Is there a way of doing this? I'm thinking something along the lines of: import sys command_line = '…
Smashery
  • 57,848
  • 30
  • 97
  • 128
8
votes
2 answers

How to restart a process every 4 hours using crontab?

Could someone tell me how to restart a process every 4 hours using crontab? I have a Starbound server running (which is a game like Terarria which recently came out) and it's taking a lot of resources, so I'd like to kill the process then start it…
user3079979
  • 105
  • 1
  • 1
  • 7
8
votes
2 answers

onCreate vs. onResume/onRestart bevhaviour regarding member variables

When I open an activity I know that I can initialize stuff in the onCreate function. But what is the behaviour on the OnResume and onRestart function? When are these functions called? Specifically: I initialize a local member variable in the…
Devolus
  • 21,661
  • 13
  • 66
  • 113
8
votes
1 answer

Android paste text from clipboard after restarting the phone

I am using android clipboard manager and trying to paste a string to my android app as mentioned in developer.android.com tutorial. I can paste string in normal circumstances but there is a problem in following scenario. Scenario: I copy a string…
Ahmed Arefin
  • 137
  • 2
  • 9
8
votes
1 answer

Better way to restart (XAML-)Designer in Visual Studio 2012

Currently when i have a problem (like errors and warnings, that are resolved but are still present in the ErrorList or to reload assemblies used by the designer) with the XAML-Designer in Visual Studio 2012 and i need to restart it, i open…
Jehof
  • 34,674
  • 10
  • 123
  • 155
7
votes
1 answer

How to restart the onCreate function

I have an application and there are certain conditions when I want my activity to be recreated or the onCreate function is needed to be called so that different functions can be performed again. Just like when the orientation of the device changes…
Farhan
  • 3,206
  • 14
  • 49
  • 62
7
votes
2 answers

Kubernetes: How do I get the status and restarts of a container using python?

I would like to get the container status and restarts of a pod, using python kubernetes. I am currently using list_namespaced_pod to get the pods and the container status, which I interpret as the status of the pod. This works, but is far from an…
A_test_user
  • 333
  • 2
  • 4
  • 7
7
votes
1 answer

How windows recovery work with failure count?

I am using the following command to configure the service failure recovery sc failure "service" actions= ""/60000/restart/60000/run/120000 reset= 60 command = "\"c:\\windows\notepad2.exe (used notepad2.exe just for testing) From the Microsoft…
OldSchool
  • 2,123
  • 4
  • 23
  • 45
7
votes
2 answers

common lisp exception handling (condition and restart)

I have been read the common lisp "Practical Common Lisp" exception handling chapter for days, but I am now so confused with the samples and the explanations, in the meanwhile I tried to write some testing sample, but it didn't work as I expected,…
7
votes
3 answers

How to protect application pools from session serialization exceptions?

We're using an Out-of-Process Session Provider (ScaleOut) for an ASP.NET application and we've noticed that when an object that's not correctly setup for de-serialization inadvertently makes its way into session it will eventually cause the entire…
Nariman
  • 6,368
  • 1
  • 35
  • 50
7
votes
2 answers

What is the difference between "systemctl restart" and "systemctl start"?

I have two services A and B where A is dependent on B which means A needs services provided by B, so in the A's service unit i have After and Requires set to B After=B.service Requires=B.service Now when i stop the service B the service A also…
7
votes
3 answers

Restarting Tomcat after a successful deployment with Jenkins

How can I have Jenkins restart a Tomcat instance after a successful deployment? I already tried using a batch script, but the Tomcat instance is killed when the build is finished.
Joachim
  • 91
  • 1
  • 1
  • 3