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

How to use sweetalert2 to Restart (JavaScript)

Old code: restart(" Game Over. Try again!"); playerLives = 10; playerLivesCount.textContent = playerLives; setTimeout(() => window.alert(text), 100); }; This works great in a popup window. I need a pretty popup so i decided to use…
Denis
  • 159
  • 2
  • 4
  • 17
-1
votes
2 answers

What code can I put in to clear all previous user inputs and re-run the code from the top?

I am currently writing a code that accepts user inputs. However, I intend to put in an option such that if the user made an error, they may restart the process again by typing in a specific input. And I'm hoping that the code clears all previous…
Don Aimi
  • 3
  • 2
-1
votes
1 answer

How can i re-run script in python language?

Just one simple question... How to re-run script when it's over. I'm sorry if question already answered. But I didn't find any useful answers...
-1
votes
1 answer

How to get error output when ansible.systemd fails with restart?

With the following ansible: - name: Reload changes in configuration and restart docker service systemd: name: docker enabled: true daemon_reload: true state: restarted register: command_output - name: Print to console debug: …
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
-1
votes
1 answer

How to restart computer using js

is it possible to restart computer using nodejs? I've searched whole day but I still have no idea how to do it or is it possible. Maybe I can make restart.bat and run it in my js program? I'm grateful for any piece of code, idea, recommendation or…
Srki
  • 315
  • 1
  • 4
  • 13
-1
votes
1 answer

PM2: Return list of stopped processes and restart only them

Basically the title. I've noticed recently that some of our processes are hitting an error during server start up which causes them to stop, and which pm2 does not restart them from automatically. Running pm2 restart \process name\ brings them…
SVill
  • 331
  • 5
  • 22
  • 55
-1
votes
1 answer

c# Windows service restarted occasionally

I have written a windows service in c# that's designed not to stop or restart. In the constructor, there is a log that writes something like "Starting Application". So i left it running for more than a week and I can see that the constructor that…
ove
  • 3,092
  • 6
  • 34
  • 51
-1
votes
1 answer

how could write a program to get age as an input?

I wanna do this but i got 3 issues a s I commented: age = input("How old are you ? ") if type(age) != int: # this line does't work restart = input("invalid input. Do you want to restart ? [y/n]") if restart == "y" : #restart the…
-1
votes
1 answer

How to get the reason for macOS Catalina regular restart?

I know, that my remote MacOS restarts daily at the same time (9:30AM). Energy Saver contains only "Start up or wake" scheduled to 07:45AM. I checked the logs for "Previous shutdown cause" by doinglog show --predicate 'eventMessage contains…
user1271551
  • 97
  • 2
  • 9
-1
votes
1 answer

Python Turtle Race Restart Function

I just got done with my first Turtle Race and still had one assignment left, a restart function. I just cant get it to work as i want. The goal is, an output of a question: Restart? y or n, and that'll restart the race() function. I am really in…
-1
votes
1 answer

how to rerun the python code automatically after "stack overflow error"

Ive written a code which will end up some desired outcome but there is a very high probability for the code to face "stack overflow error". Is there anyway to restart the code automatically after "stack overflow error"? I tried "try"-and-"except"…
-1
votes
1 answer

Flutter Hot Restart - suspect it populates class instances incorrectly

My app is in 2 parts. It creates a widget tree and populates a Stateful Widget Config. I then pass this to phase 2 of my app as a static. (I tried various ways). On a clean emulator it runs fine. When I run it again using Hot Restart my…
Steve Pritchard
  • 207
  • 3
  • 5
-1
votes
1 answer

how to restart spring batch failed job with old job paramters

I am passing time in my job parameters .After running my job , i can see in console my job started with time parameters :- Job: [FlowJob: [name=DB2-SQL-LOAD56]] launched with the following parameters: [{Time=1590853755581}] I am wondering how can i…
Nitish
  • 21
  • 1
  • 5
-1
votes
1 answer

Powershell: Check computer to see if reboot is required otherwise skip

I am trying to user Test-Pendingreboot script to find out computers which need reboot, but I don't know how to take the results from Test-pendingreboot if $true the Force Reboot the computer. Any help will be appreciated Thank You
R0b
  • 11
  • 1
  • 3
-1
votes
1 answer

How to create an app to restart/reboot android phone using a button in android studio?

i want to restart my android phone by using a simple application which contain a button. By clicking the button my phone should be restart. I am using android studio latest version.