Questions tagged [application-restart]

Questions based on restarting programs in various programming languages belong in this tag.

Based on certain conditions, the entire application may need to be restarted. In these cases, it is likely that the code file in question is already being run as the main() of the application. Restarting an application at this level is not always trivial.

Since different languages may handle this differently, a question tagged with this tag must also be tagged with the programming language being used

236 questions
4
votes
2 answers

VS2022 Hot Reload unconditionally restarts application after changes

for C# there's this option in VS for hot reloading, to automatically rebuild and restart the application. This is usually necessary when the changes couldn't be applied while the application was running. In practice, this happens a lot when you have…
4
votes
1 answer

Is it possible to see the restart history of an Azure App Service?

Is it possible to see the restart history of an Azure App Service? I mean to see it in the GUI, not an API.
4
votes
1 answer

Open multiple Excel files in separate instances with batch file

I run multiple Excel instances / files which require a manual PC restart daily. Currently I save all my Excels, restart the PC, then have to open each file separately, which is quite manual. Is anyone aware of a program I can run that will open the…
JSNoob
  • 71
  • 1
  • 2
  • 9
4
votes
2 answers

Automatic restart of a crashing Linux daemon

I have a Linux server application that I managed to "deploy" as a daemon that can be started automatically when the machine starts, independently of user sessions.. I wonder if it is possible to tell the system to automatically restart the…
charfeddine.ahmed
  • 526
  • 2
  • 8
  • 16
4
votes
2 answers

How to restart a dart server which file changes?

I'm running a web server with dart, it starts by: dart server.dart When I modified the project files, I hope this server can be restarted automatically. Is there any way to do it? Or is there any useful tool can help?
Freewind
  • 193,756
  • 157
  • 432
  • 708
4
votes
2 answers

How to launch service on boot complete android?

I've read some tutorial on launch service on boot. What I've done is: In manifest:
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
4
votes
1 answer

Android checking Wifi on every onRestart

I want my app to check whether the device is connecting to a specific Wifi and auto connect to the Wifi whenever the app is navigated to. I know that I can do it in onRestart(). But it only handles one activity's state. My question is if there any…
Keith
  • 41
  • 1
3
votes
1 answer

Restart application after closing program

I'm developed a program on C#. in my program, when user save personal setting the program can be following rules. 1- save settings. 2- after saving close all form and program. 3- and restart program. I'm done 1. and 2. steps How can i done 3.…
TheMuyu
  • 579
  • 2
  • 12
  • 31
3
votes
1 answer

How to restart firefox from code?

How to correctly restart firefox (without any "restore session" things and with the same windows as before) from code? I know pid of "firefox-bin" in a bash script process and I have my custom plugin loaded into it.
Vi.
  • 37,014
  • 18
  • 93
  • 148
3
votes
2 answers

Integrating Vidyo library. App will restart after leaveing video chat

I'm having an issue integrating Vidyo into an existing app. Video chat lanches, connects, and works just fine. The problem I'm running into is after closing the Vidyo activity. The previous activity returns, executes on through the OnResume(), and…
3
votes
0 answers

How to restart my application in admin rights in C#

I realise something that when I restart my application (with code), it does not restart with admin rights. When I start my app by double clicking, it ask me that you want to run it as an admin and I say yes. But after that I need to restart my…
ertan2002
  • 1,458
  • 1
  • 32
  • 68
3
votes
3 answers

restart my app after an auto-update?

In OS X how can I automatically re-start my app after pulling down an updated version? I've looked around some and launchd seems to be the likely way to do this, but I can't seem to get my head around it. I can't seem to find any good resources…
slycrel
  • 4,275
  • 2
  • 30
  • 30
3
votes
3 answers

How to restart a console c application written in windows?

I am using MSVS 2008. I am writing an application in c, and would like to know what's the best way to restart an application in windows. I looked around and someone was doing something like this, but I am not sure if that is the best way or if that…
emge
  • 477
  • 2
  • 8
  • 20
3
votes
1 answer

Restart the application on resume using unity in c#

Im currently developing a unity application for both android and ios platforms. I have implemented deep links in the platforms separately using native coding. The problem I have now is the deep linking works perfectly well in both android and ios…
3
votes
5 answers

How can you speed up the restart of an ASP.NET application?

What can I do to ensure that when an application/app pool restart is triggered, that the application comes back online as fast as possible? Better yet, is there a way to prevent the application restart when the usual triggers occur? Like modifying…
John B
  • 20,062
  • 35
  • 120
  • 170
1 2
3
15 16