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

Cordova: restart app and clear browser history

We are adding a feature to our Cordova app to catch unhandled exceptions and restart the app. We would like the browser history to be cleared in this case so the user can't hit back on an Android device to go back to the screen that crashed. It…
Matthew Gertner
  • 4,487
  • 2
  • 32
  • 54
5
votes
3 answers

How to restart a dag when it fails on airflow 1.8?

With: default_args = { ...     'retries': 1, 'retry_delay': timedelta (seconds = 1), ... } I can get the task that fails to retry several times, but how can I get it when a task fails, the DAG starts again? Of course, automatically...
Siro
  • 55
  • 2
  • 5
5
votes
4 answers

Why google cloud shell auto disconnect after 1 hours

I use Google Cloud Shell to run Jupyter Notebook on instance , but after 1 hours,the connection is disconnect. And I reconnect to instance, there is nothing, is same as reset instance. So, please tell me how to set up ,make the connection of cloud…
hiyoung liu
  • 53
  • 1
  • 3
5
votes
5 answers

Python restart program

I made a program that asks you at the end for a restart. I import os and used os.execl(sys.executable, sys.executable, * sys.argv) but nothing happened, why? Here's the code: restart = input("\nDo you want to restart the program? [y/n] > ") if…
claudio26
  • 149
  • 1
  • 1
  • 8
5
votes
1 answer

jQuery stop HTML5 video when hidden, restart when visibile

I've got an HTML5 video embedded in a page that's set for autoplay on load. When a menu is toggled, it is hidden and a series of images take its place. When the menu is put closed, the video returns. It was recommended that I stop the video while…
technopeasant
  • 7,809
  • 31
  • 91
  • 149
5
votes
7 answers

How do you restart an app/reread app.config file when modified (.NET)?

We all know that modifying a .NET web application's web.config file restarts the app and makes it read the updated configuration. How do you do that with a console or WinForms app? Thanks :)
cruizer
  • 6,103
  • 2
  • 27
  • 34
5
votes
4 answers

restart local computer from python

Is there any way to make the computer a Python program is running on restart? Generic solution is good, but in particular I'm on windows.
Claudiu
  • 224,032
  • 165
  • 485
  • 680
5
votes
2 answers

VSCode open specific file on startup

Is it currently possible to set a specific file to open on startup in VSCode? I have the 'To Do Tasks' extension installed and I want to open my TODO file by default each time I load VSCode. Using Version 1.12.1
5
votes
1 answer

Rolling restart of process group in monit

Does anyone have any suggestions of how I might go about achieving a rolling restart of a process group using monit? Thanks in advance, fturtle
fturtle
  • 365
  • 1
  • 5
  • 17
5
votes
3 answers

Prevent Docker-Engine restart during apt-get upgrade

I've got an issue here with Ubuntu 14.04 Whenever I do an apt-get upgrade, if docker-engine is eligible for upgrade, it restarts the service after upgrading. This causes the containers to get restarted. One of the containers is one that requires…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
5
votes
3 answers

How to auto restart a Qt application when it crashes, within the same program?

Is there any relatively "standard" design to auto restart a Qt application program, when it crashes abnormally? Specific to Windows, do I have to use any windows service? Or if I have to write another program separately, then how to do that?
Nyaruko
  • 4,329
  • 9
  • 54
  • 105
5
votes
3 answers

Monitor Process in Python?

I think this is a pretty basic question, but here it is anyway. I need to write a python script that checks to make sure a process, say notepad.exe, is running. If the process is running, do nothing. If it is not, start it. How would this be done. I…
Zac Brown
  • 5,905
  • 19
  • 59
  • 107
5
votes
3 answers

javascript - how to restart a function from inside it?

How do I restart a function calling it from inside the same function?
FernandoSBS
  • 655
  • 5
  • 12
  • 23
5
votes
1 answer

Android back button does not restart activity?

My app intiates an activity. On the click of a button, the app opens up the browser with a webpage. When I hit the back button, it comes back to my initial activity screen, but does not resume or restart the activity. When I put all the layout code…
Chris
  • 3,787
  • 13
  • 42
  • 49
5
votes
1 answer

Conditional restart on Activity onConfigurationChanged

I want to make an activity that allows orientation changes on some condition, but not otherwise. More exactly I want to prevent restarting the activity when a background thread is busy. I have put the configChanges attribute on the activity…