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
7
votes
2 answers

How do I detect if a thread died, and then restart it?

I have an application that fires up a series of threads. Occassionally, one of these threads dies (usually due to a network problem). How can I properly detect a thread crash and restart just that thread? Here is example code: import random import…
NewGuy
  • 3,273
  • 7
  • 43
  • 61
7
votes
5 answers

How to restart tweepy script in case of error?

I have a python script that continuously stores tweets related to tracked keywords to a file. However, the script tends to crash repeatedly due to an error appended below. How do I edit the script so that it automatically restarts? I've seen…
Eugene Yan
  • 841
  • 2
  • 9
  • 23
7
votes
2 answers

Program restart self on update

I checked everywhere so I am hopefully not repeating a question. I want to add a portable update feature to some C code I am writing. The program may not be in any specific location, and I would prefer to keep it to a single binary (No dynamic…
Drumm
  • 73
  • 1
  • 4
7
votes
2 answers

InnoSetup: Find out reason for restart

I have an Inno Setup script that installs my application and its accompanying files. On some systems a restart is required, on some not. I would like to find out the reason for the required restart. How would I do this most intelligently? Thank…
tmighty
  • 10,734
  • 21
  • 104
  • 218
7
votes
5 answers

ActiveMQ won't restart because KahaDB is locked

Locally to start/stop ActiveMQ (5.6) on my dev machine I just run ./activemq start and ./activemq stop respectively. On our QA machine we have it installed as a service and run service activemq start and service activemq stop respectively. I just…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
7
votes
3 answers

Cancel slow download in python

I am downloading files over http and displaying the progress using urllib and the following code - which works fine: import sys from urllib import urlretrieve urlretrieve('http://example.com/file.zip', '/tmp/localfile', reporthook=dlProgress) def…
Holy Mackerel
  • 3,259
  • 1
  • 25
  • 41
7
votes
2 answers

Android Restarting the Application

I am trying to restart the app when the crash occurs in android using Thread.UncaughtExceptionHandler. Can i restart the app with current activity stack as a new process?? If yes how can i do it?
PgmFreek
  • 6,374
  • 3
  • 36
  • 47
7
votes
5 answers

c# restart for loop

So I have these few lines of code: string[] newData = File.ReadAllLines(fileName) int length = newData.Length; for (int i = 0; i < length; i++) { if (Condition) { //do something with the first line } else { //restart…
Kirev
  • 147
  • 2
  • 2
  • 10
6
votes
2 answers

Is there any way of restarting the kernel safely without losing things saved in Python Jupyter Notebook?

I can't import statsmodels.api in Jupyter Notebook anymore. I thought that it requires updating statsmodels.api. Then I typed "Conda update statsmodels.api". Then, the message comes up below. PackageNotInstalledError: Package is not installed in…
eco
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Android Emulator restarts when sending mock location

I need some help here. I am working on an application that obtains the user's location. I did refer to a number of websites about this so I'm pretty sure I am not missing any step here (from the codes up to sending mock location). So anyway, my…
Wiz
  • 61
  • 2
6
votes
2 answers

Restart thread after exception on Python

I wrote this script in order to extract metadata from data on specific ftp then save it on specific directory and waits a random time and extract again etc... So there is 2 points : First : to extract from specific ftp Second : to save it and…
Wansonce
  • 81
  • 2
  • 5
6
votes
1 answer

Modify command line arguments before Application.Restart()

My winforms (not clickonce) application takes command line arguments that should only be processed once. The application uses Application.Restart() to restart itself after specific changes to its configuration. According to MSDN on…
khargoosh
  • 1,450
  • 15
  • 40
6
votes
2 answers

Django keeps restarting itself in development mode

Django development server keeps restarting itself, without any differences made to any files under the project directory. Below is the output: den@ev:~/calisma/ > python manage.py runserver 9000 -v 2 --traceback Validating models... 0 errors…
altunyurt
  • 2,821
  • 3
  • 38
  • 53
6
votes
2 answers

How do I programatically restart a system service(not apache) from apache in linux?

I need to simple way to allow an end user to restart tomcat from a web page served from apache on the same box. We're trying to make it easy for our QC department to deploy a new version of our webapp to apache. We're using samba, but we need an…
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
6
votes
1 answer

How to force restart after uninstall for a Basic MSI Project in InstallShield 2009 Premier

InstallShield 2009 Premier, Basic MSI Project: After uninstall completes, I want to force restart the computer. How? Googling found, i have to set 'REBOOTPROMPT' TO 'S' or 'R' and the "Reboot" property. How to set these properties and with what…
Samir
  • 3,923
  • 9
  • 36
  • 43