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.
1,535
questions
685
votes
10
answers
2.5m
views
How do I shutdown, restart, or log off Windows via a bat file?
I've been using Remote Desktop Connection to get into a workstation. But in this environment, I cannot use the power options in Start Menu. I need an alternative way to shutdown or restart.
How do I ...
128
votes
7
answers
136k
views
How can I configure a systemd service to restart periodically? [closed]
I have a simple systemd service that needs to be periodically restarted to keep its process from bugging out. Is there a configuration option for systemd services to periodically restart them? All of ...
107
votes
13
answers
232k
views
How can I restart a Java application?
How can I restart a Java AWT application? I have a button to which I have attached an event handler. What code should I use to restart the application?
I want to do the same thing that Application....
105
votes
7
answers
92k
views
Do you have to restart apache to make re-write rules in the .htaccess take effect?
I have pushed my .htaccess files to the production severs, but they don't work. Would a restart be the next step, or should I check something else.
96
votes
8
answers
375k
views
How to restart remote MySQL server running on Ubuntu linux?
I'm using Ubuntu 12.04 LTS.
There is on MySQL server situated remotely. I want to restart it.
Can someone please give me in detail step-by-step instructions to restart the MySQL server?
Following are ...
96
votes
9
answers
31k
views
Reload configurations without restarting Emacs
How do I load the edited .emacs file without restarting Emacs?
90
votes
14
answers
127k
views
Android Service Stops When App Is Closed
I am starting a service from my main Android activity as follows:
final Context context = base.getApplicationContext();
final Intent intent = new Intent(context, MyService.class);
startService(intent)...
75
votes
2
answers
25k
views
Restart TeamCity server via web interface
Is there a way to restart a TeamCity server running on Windows from its web interface? I haven't found a button or documentation whether this is possible.
73
votes
2
answers
67k
views
What is the difference between always and on failure for Kubernetes restart policy?
The best source for restart policies in Kubernetes I have found is this:
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
But it only lists the possible restartPolicy ...
64
votes
13
answers
106k
views
How to restart nginx on OS X
I'm using nginx on OS X 10.8. Freshly installed nginx but can't find a way to restart nginx except kill nginx_pid say kill 64116. Wondering if there are better ways to restart nginx.
Found some ...
62
votes
9
answers
87k
views
Refreshing/Restarting PowerShell session w/out exiting
I have been tweaking some of the scripts in my PowerShell profile and it has got annoying to exit powershell then restart it so it will load any changes I have made to the scripts in my profile. Is it ...
61
votes
7
answers
74k
views
android:configChanges="orientation" does not work with fragments
I am just trying to adapt some of my applications for HoneyComb.
The issue iI am facing is the destruction of my activity on orientation change (landscape/portrait)
When I was using a classic ...
54
votes
17
answers
233k
views
Stop MySQL service windows
I am developing a website and need to refresh data. Therefore MySQL must be stopped.
How can I stop the service?
When I look at control panel services it is started without stop or restart option.
53
votes
5
answers
42k
views
pause vs stop in docker
I am trying to understand what is the difference between the commands docker stop ContainerID and docker pause ContainerID. According to this page both of them are used to pause an existing Docker ...
46
votes
3
answers
19k
views
How to recall or restart MathJax?
I need MathJax to recheck again all my page.
I mean when the page is created it does all great. But I need to call it after window.onload to reparse the page, as its contents have changed in the ...
44
votes
2
answers
53k
views
Difference in docker restart policy between on-failure and unless-stopped?
I have read the docker documentation about restart policy of containers.
However, I failed to understand the difference between on-failure and unless-stopped.
When will I use one over the other? In ...
43
votes
4
answers
86k
views
how to automatically restart a node server?
We are finishing development of a project, the client is already using it but occasionally some errors occur - crashing the server.
I know I could register a service as 'upstart' script on linux, in ...
42
votes
2
answers
36k
views
How to send a custom command to a .NET windows Service from .NET code?
As in the following link, one can stop, start, and "stop, then start" a service using C# code.
http://www.csharp-examples.net/restart-windows-service/
I have baked a .NET service that does implement ...
37
votes
6
answers
89k
views
Windows: Auto start PM2 and node apps
At a Windows AWS server i have a NODE app and
i'm using PM2 to launch the app
I have tried the NPMs: "pm2-windows-startup" and "pm2-windows-service"
But after i restart my AWS instance and run
PM2 ...
36
votes
3
answers
29k
views
Restart my Phonegap app programmatically
How can I programmatically restart my phonegap app? I exit the app easily through navigator.app.exitApp(), but I would like it to restart immediately.
The reason I need this, is I have to restart it ...
34
votes
7
answers
123k
views
How to stop (and restart) the Rails Server?
I'm following the instructions here http://railsinstaller.org/mac to get up and running with Rails on a Mac running OS X 10.8.2
At step 8 I'm asked to restart Rails server but how?
I'm assuming via ...
31
votes
4
answers
40k
views
Can I stop all processes using CUDA in Linux without rebooting? [closed]
Is it possible to stop all running processing using the GPU via CUDA, without restarting the machine?
30
votes
7
answers
34k
views
how to restart asp.net application besides modifying web.config
Is there a recommended way to bounce an asp.net application besides touching web.config from inside the application? is HttpRuntime.UnloadAppDomain(); the preferred way to do this ? and if so where ...
30
votes
1
answer
30k
views
Android AlarmManager after reboot
I have a set of alarms that I need to keep after reboot. I've tried using on an boot receiver but they won't start again. I'm not sure if I understand the boot receiver and how to then restart all the ...
29
votes
8
answers
26k
views
Automatically Restart PHP Script on Exit
Is there a way I can automatically restart a PHP script whenever it exits, regardless of whether it has been exited properly, or has terminated due to an error, or maxed memory usage, etc.?
28
votes
5
answers
25k
views
Stop: Unknown instance mongodb (Ubuntu)
I am new to Mongodb. When I run the following command:
sudo service mongodb start
It shows me "mongodb start/running, process 3566". But when I try to stop by giving the below command:
sudo service ...
27
votes
2
answers
169k
views
Basic Apache commands for a local Windows machine
I have installed XAMPP on my Windows 7 machine and created a number of virtual servers. This part is straightforward enough.
Each time I add a new virtual server I am having to reboot my computer in ...
25
votes
6
answers
83k
views
Node JS auto restart all forever JS process when server goes down / crashes
I am using forever js to keep my node server running 24/7 on AWS EC2.
I use this command
forever start index.js
However, I notice that some time it randomly stops the process and my site goes down. ...
25
votes
6
answers
29k
views
Jenkins refuses to restart
Following this answer, I have tried restarting a Jenkins instance using:
(jenkins_url)/safeRestart
and
(jenkins_url)/restart
Both failed with the following message:
Jenkins cannot restart ...
24
votes
3
answers
15k
views
Start AlarmManager if device is rebooted
In my app I want to run some code every day at a specific time using an AlarmManager. In the android documentation I found this:
Registered alarms are retained while the device is asleep [...] but ...
23
votes
3
answers
19k
views
How to gracefully restart a NodeJS server?
Currently, my prod environment for a side project is a git repo, where I pull in some code, manually kill the server with Ctrl-C, and restart it manually.
I realize there are a lot of things wrong ...
22
votes
4
answers
12k
views
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 ...
21
votes
5
answers
61k
views
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?
20
votes
4
answers
27k
views
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.
20
votes
4
answers
18k
views
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 ...
19
votes
1
answer
15k
views
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 /...
18
votes
3
answers
13k
views
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 ...
18
votes
4
answers
41k
views
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 "...
17
votes
4
answers
23k
views
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 ...
17
votes
5
answers
8k
views
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?
17
votes
1
answer
18k
views
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 ...
17
votes
3
answers
15k
views
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'...
17
votes
3
answers
15k
views
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 ...
16
votes
2
answers
15k
views
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 ...
15
votes
1
answer
7k
views
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 ...
14
votes
2
answers
28k
views
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 ...
13
votes
2
answers
4k
views
Prevent Windows 10 from automatically restarting after an update programmatically
QUESTION: Is there a programmatic way to prevent Windows 10 from automatically restarting after an update?
We work on "mission-critical" software that runs in Windows. In general, it is bad if a ...
13
votes
5
answers
2k
views
Allow restarting Java application with JMX monitoring enabled immediately
I have a Java application with JMX monitoring enabled like this:
-Dcom.sun.management.jmxremote.port=9999 \
// some other properties omitted
But when I try to restart the application, sometime I got ...
12
votes
2
answers
7k
views
Reconnect RMI client after server restart
I have an RMI server and a desktop RMI client. When I restart the server, I get errors in the client. Is it possible to restart the RMI connection without restarting the client?
[EDIT] Here is the ...
12
votes
1
answer
6k
views
What could cause an Android activity to relaunch itself infinitely when returning from camera?
I have a weird bug in my application that causes an activity to relaunch itself in an infinite loop when I'm returning from a camera application, after taking a picture.
The UI flow is like this:
...