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
0
votes
1 answer

How to restart PyQt application after exception is raised

I built some error dialogs within exceptions in my code. Everything works, except that the program continues executing the code after the exception. So I built in sys.exit(): try: hdf = pd.HDFStore(filepath_hdf) except: …
Artur Müller Romanov
  • 4,417
  • 10
  • 73
  • 132
0
votes
1 answer

How to (reset || restart || clear) form2 in WPF in C#

My application is consist of two forms. Form1 and Form2 Currently I'm facing problem in form2. The problem is that i want to restart my form2. To restart my form2 i'm using application.restart(); But this restart whole project and form1 appears…
0
votes
1 answer

Supervisord overriding environmental variables

I have an application (deployed in docker container) managed via supervisord My supervisord.conf looks like: [supervisord] nodaemon=true logfile=/var/log/supervisor/supervisord.log loglevel=INFO [program:anjay] priority=1 #USE SOME_CLI for…
0
votes
1 answer

Sublime text 3 settings doesn't reloads until restarting it

Sublime text 3 doesn't refreshes the folder tree or the reflects the output file changes or reflects the changes in the settings immidiately. I have c++ build system setup on sublime which takes input from "inputf.in" and provides output to…
0
votes
2 answers

How to disable authorization for /restart endpoint?

I try to implement restart feature in my web application. I've added following dependencies: compile("org.springframework.boot:spring-boot-starter-actuator") compile("org.springframework.cloud:spring-cloud-starter:1.2.4.RELEASE") In start logs I…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

Restart a visual studio project

I am using MS Visual Studio 2010 to run an application. The application is being run from the project for various reasons. At one point I need to restart the program as it is done exactly by this button . I searched around for batch file code but I…
Anna Marie Rapa
  • 119
  • 1
  • 3
  • 13
0
votes
1 answer

Restart main function of a java server

I'm working on my first Server/Client Project in Java. It's still very Basic and I was able to Exchange some data between the Server and the Client program. Now I facing Trouble to reconnect once the Client has terminated the Connection. I'm…
chris
  • 13
  • 3
0
votes
0 answers

How to restart wildfly host-controller in domain mode efficiently without any risk?

My companay uses wildfly 8.1.0.Final for middleware and the production system mode is in domain. For some reason we have to restart the host-controller before auto-deploy. To resolve this, my workmates always take two ways: kill all java processes…
Z.Loon.F
  • 13
  • 5
0
votes
0 answers

Android service to watch if app is running

I'm creating a survey app for our offices, and I want this app always running and in foreground, but for some reasons (usually by user) this app is sent in background or killed, so I need to create a service that watches if my app is running and in…
Houssem
  • 2,069
  • 3
  • 27
  • 42
0
votes
0 answers

Android app crash but don't restart to First activity

My application is an Android launcher. The application is very bad because the have many static. My app crash a first time for a reason. The application is auto restared by the os; but it restart the activity crashed not the first activity and for…
Flofloaud1034
  • 378
  • 1
  • 5
  • 23
0
votes
1 answer

Plone won't start because of ZopeXMLConfiguratinError

I just added a new product to my Plone5 buildout and it throws the error below, now even if I comment out all the add-ons, I still get this error, and Plone will not start. zope.configuration.xmlconfig.ZopeXMLConfigurationError: File…
mateolan
  • 11
  • 4
0
votes
1 answer

Tomcat server needs restart to fetch updated Neo4J database

I use Apache Tomcat as my web server. I have a RESTful web service which fetches data from a Neo4J graph database. The Neo4J graph database gets updated periodically. Unless i restart the tomcat server, my web service doesn't fetch the new results.…
Kabhi
  • 135
  • 1
  • 12
0
votes
3 answers

Running a Bash script with correct syntax but it keeps giving me a syntax error

I have been trying to compile my Bash script but I keep getting this syntax error even though I'm following the correct syntax. Code: #!/bin/sh set…
srao
  • 111
  • 1
  • 9
0
votes
1 answer

linux -- determine what service was running on a down port

I need to write a bash script that: -- takes ip address and list of ports as standard input, -- check to see if port up or down, -- if port is down, then restart the service via ssh Got the first two working, however I am stuck on the last part,…
0
votes
0 answers

Permissions Request dialog persist on application restart when permission is revoked

My application is targeted to Android Marshmallow (API level 23) and implemented Run-time Permissions by following the developer guide in the below link. https://developer.android.com/training/permissions/requesting.html. This requesting Permission…