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

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 OnStart and OnStop. However, I need to implement a…
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
36
votes
2 answers

Difference in docker restart policy between on-failure and unless-stopped?

I have read the docker-compose 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 which situations a certain policy will lead…
moshevi
  • 4,999
  • 5
  • 33
  • 50
36
votes
6 answers

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 ls No node app shows up in the list... I followed…
PabloDK
  • 2,181
  • 2
  • 19
  • 42
36
votes
3 answers

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 after the user chooses his user language from a…
NuttySquirrel
  • 413
  • 1
  • 4
  • 8
33
votes
7 answers

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 a command line, but from within the already open…
Paul Seattle
  • 481
  • 1
  • 5
  • 10
30
votes
4 answers

Can I stop all processes using CUDA in Linux without rebooting?

Is it possible to stop all running processing using the GPU via CUDA, without restarting the machine?
Christopher Dorian
  • 2,163
  • 5
  • 21
  • 25
30
votes
7 answers

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 do you do this? In the unload of a page or some…
MikeJ
  • 14,430
  • 21
  • 71
  • 87
30
votes
1 answer

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 alarms. I already have one receiver for my…
user1281053
  • 387
  • 1
  • 5
  • 10
28
votes
8 answers

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.?
Alasdair
  • 13,348
  • 18
  • 82
  • 138
28
votes
5 answers

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 mongodb stop It shows stop: Unknown instance:. Do…
senthil
  • 1,307
  • 1
  • 11
  • 23
26
votes
2 answers

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 order to reboot the Apache server, which is of…
Username_null
  • 1,249
  • 2
  • 21
  • 29
25
votes
6 answers

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 itself as currently configured. Searching for Jenkins…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
24
votes
6 answers

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. I have to manually ssh into my server to run it…
Faizan
  • 1,847
  • 8
  • 40
  • 63
23
votes
3 answers

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 will be cleared if it is turned off and…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
22
votes
3 answers

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 with this. For instance, what if a user is still in…
user1159470
  • 289
  • 1
  • 2
  • 5