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
22
votes
4 answers

ASP.NET MVC why does my app keep restarting?

I have an ASP.NET MVC website that gets about 6500 hits a day, on a shared hosting platform at Server Intellect. I keep seeing app restarts in the logs and I cannot figure out why. I've read Scott Gu's article here:…
Dave Thieben
  • 5,388
  • 2
  • 28
  • 38
20
votes
4 answers

How to detect whether Windows is shutting down or restarting

I know that when Windows is shutting down, it sends a WM_QUERYENDSESSION message to each application. This makes it easy to detect when Windows is shutting down. However, is it possible to know if the computer going to power-off or is it going to…
Andrew Garrison
  • 6,977
  • 11
  • 50
  • 77
20
votes
4 answers

Close and restart the current application in DELPHI

How can I do this one? For some reason or selected by the user, “ask” the current application to restart it self.
DRokie
  • 705
  • 2
  • 9
  • 20
20
votes
5 answers

How to restart Redmine?

I have a Redmine installed on CentOS without GUI. I changed email configuration and a reboot is necessary. How to restart redmine from command line?
FilippoG
  • 329
  • 1
  • 2
  • 13
19
votes
1 answer

get monit to alert first and restart later

I would like to handle a kind of chain action in monit. check for a process and alert immediately. restart process after a num of cycles. My tries (so far): check process myprocess with pidfile /run/my.pid start program = "/path/to/binary start"…
questioner
  • 231
  • 1
  • 2
  • 6
18
votes
3 answers

How to detect whether apt-get requires a reboot using Bash?

I am writing a bash script (for apt-get based OS's) that automates the installations process of various programs. In this process I run "apt-get -fy update" and "apt-get -fy upgrade" sometimes. In the process of upgrading, occasionally, a restart is…
Roger
  • 8,286
  • 17
  • 59
  • 77
17
votes
3 answers

How to force a service restart?

I have a background service that sometimes gets killed by the OS when it is running low on memory. How to simulate this behaviour so I can debug it? The dev guide simply says "if your service is started, then you must design it to gracefully…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
17
votes
3 answers

Restarting Hudson on Windows

I've been having an issue with Hudson on windows. Whenever I update Hudson or a plugin I get the option to restart when no jobs are running. If I click this button Hudson hangs and doesn't restart. I've tried restarting the Hudson service but this…
TDH
  • 567
  • 1
  • 6
  • 22
17
votes
4 answers

How to restart service after the app is killed from recent tasks

I have created a service to fetch current location of the device in periodic intervals. I want the service to run in the background even if the app is cleared from recently opened apps. Currently the service runs in background only until app is…
17
votes
1 answer

Restarting Sidekiq

What is the correct way to restart sidekiq. It seems to cache my workers' code when I start it, so every time I make a change to my workers I need to restart it. I'm doing this with Ctrl/C, but the process takes a long time to wind down and return…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
17
votes
5 answers

How to restart app if it unexpectedly shutdown

Skype update text contains next: App auto restarts if unexpectedly shut down How is possible to perform that via SDK?
Maxim Kholyavkin
  • 4,463
  • 2
  • 37
  • 82
16
votes
3 answers

Restart kernel in Google Colab

I´m trying to restart the kernel in a Google Colab Jupyter Notebook through a cell. The option given previously: import os os._exit(00) is ok, but it seems to me that this is not a very "pythonic" way of restarting the kernel. The other…
Gustavo Mirapalheta
  • 931
  • 2
  • 11
  • 25
15
votes
2 answers

Android application restarts when opened by clicking the application icon

I am new to the Android development world and I've built a simple "Hello World" app. First, activity requests a text. When the "Go" button is clicked, the app launches the second activity displaying the input text. If I click the HOME button and…
14
votes
1 answer

Restart a crashed program with RegisterApplicationRestart without user prompt

I am using the Windows Error Reporting API call RegisterApplicationRestart to register an application to be restarted automatically by WER, when the app crashes or the PC is rebooted. However, when the app crashes, the default WER dialog pops up…
HugoRune
  • 13,157
  • 7
  • 69
  • 144
14
votes
2 answers

Reload python flask server by function

I'm writing a python/flask application and would like to add the functionality of reloading the server. I'm currently running the server with the following option app.run(debug=True) which results in the following, each time a code change…
mohrphium
  • 353
  • 1
  • 4
  • 13