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
6
votes
3 answers

Android GPS does not work until restart on new phones

I have posted about this issue before, and found a few other people who have had the same issue with no solutions found. I am developing an Android app that submits a JSON query to a server with the obtained GPS coordinates and geocoded Zip Code.…
mattcoker
  • 169
  • 3
  • 15
6
votes
1 answer

Inno Setup: restart in the middle of setup process

I've made a installer via Inno Setup and now I'm need to restart computer after some files were run. So, i have code: .... [Files] .... [Run] Filename: firstfile RESTART Filename: secondfile .... Is this possible? I have found one example script…
Araxnid
  • 173
  • 2
  • 11
6
votes
3 answers

Is it possible to restart a PC using "pure" .NET and *without* using p/invoke?

Is it possible, without employing pinvoke, to restart a PC using .NET? I kind of just repeated the title, but I'm not too sure how to elaborate much further! Edit: I should have mentioned that don't want to use "shutdown -r" as a solution. I was…
joshcomley
  • 28,099
  • 24
  • 107
  • 147
6
votes
1 answer

In Windows C++ or C# can you ask the OS if it is currently shutting down/restarting/logging off

I have an issue that occurs during shutdown. I have piece of code written in C++ that is wrapped in a .dll and injected into other applications. It does a bunch of stuff including starting another application (sever) that is written in C#. However,…
Ultratrunks
  • 2,464
  • 5
  • 28
  • 48
6
votes
0 answers

restarting Mac OS securityd

Currently, MacOS has a bug where upon unlocking a Smartcard in Keychain.app will result in the padlock icon within system preferences to become frozen. You can no longer "click to unlock" the padlock to elevate to admin privileges within system…
HM Stanley
  • 145
  • 4
  • 14
5
votes
3 answers

Cannot get my Upstart script to run Node.js and Forever when server restarts

I've been setting up my server recently and today I had to restart it... then I realised all of my Node apps I had running weren't running anymore. I'm using Node Forever module to keep the apps running, but then I realised I still need to have them…
littlejim84
  • 9,071
  • 15
  • 54
  • 77
5
votes
2 answers

How do I stop a timer that hasn't finished and then start a new one?

I'm attempting to do a guessing game, of sorts. The issue is my timer bleeds into the next one after a question is answered (button pressed) and a new timer starts. This leads to two timers changing a textview at different intervals, which is not…
MattDementous
  • 97
  • 3
  • 7
5
votes
6 answers

How can I tell if the computer has been restarted?

I once used a command line SMTP mailer that, as a limit of the trial version, allowed you to receive up to 10 emails with it per Windows session. If you rebooted your computer, you could receive 10 more. I thought this kind of shareware crippling…
ryeguy
  • 65,519
  • 58
  • 198
  • 260
5
votes
6 answers

Auto-restart system in Python

I need to detect when a program crashes or is not running using python and restart it. I need a method that doesn't necessarily rely on the python module being the parent process. I'm considering implementing a while loop that essentially does ps…
Caedis
  • 591
  • 1
  • 8
  • 13
5
votes
1 answer

Reliably Restart a Single-Instance WPF application

I would like to have my current application close and restart. I have seen many posts on this, however none of these seem to work for me. I have tried System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location); …
lost_bits1110
  • 2,380
  • 6
  • 33
  • 44
5
votes
2 answers

Android - Wrong activity sometimes starts

I have an Android App with a number of activities. The wrong activity is being started sometimes. Normally, an Application subclass starts, then start activity (StartAct... android:name="android.intent.action.MAIN",…
Mesocyclone
  • 881
  • 1
  • 10
  • 19
5
votes
3 answers

Spring-batch exception: org.springframework.batch.core.launch.NoSuchJobException: No job configuration with the name [] was registered

I am seeing this exception when stopping a running job using jobOperator.stop(id) or when I want to restart it using jobOperator.restart(id). I don't have any idea why the MapJobRegistry is empty ... Am I missing a step ? I have reproduced the…
Dave
  • 111
  • 1
  • 4
5
votes
4 answers

Discord.py Restart Command

So, i was making a bot and i was wondering if there is a way to restart it using a command like: p!restart i did like a command: p!shutdown but cant figure out how to restart, for those who came here looking for a shutdown cmd: async def…
MysteriousK
  • 89
  • 1
  • 3
  • 9
5
votes
1 answer

running a shell script automatically with launchd on Mac

I'm trying to get a script to run every day at the same time to restart a Mac. I cannot use the built in schedule feature in the energy saving preference panel because I have apps running that prevent a normal restart. If I initiate the restart via…
Erithacus
  • 51
  • 1
  • 1
  • 5
5
votes
1 answer

language change only after restart on iphone

I'm trying to change app language, but when I run this code in main.h language chages after I shut down an App and run it again. Is this possible to change language without restarting? int main(int argc, char *argv[]) { NSAutoreleasePool * pool…
pawelini1
  • 487
  • 7
  • 15