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

Restart computer in Safe Mode - Optimize code

I have a Script that will restart a Windows computer in Safe Mode. This vbscript calls a BAT file that prompts a UAC elevation, and restarts the computer in safe mode. Any suggestions on how to optimize this script? And can this work in Windows…
user1914378
0
votes
2 answers

CLI bash, wanting to restart service or service

I am unsure of the syntax I would need to use to do: /etc/init.d/mysql restart or /etc/init.d/mysqld restart This is for scripts so it can be easily ported onto Ubuntu (mysql) or CentOS (mysqld). I'm just wanted a quick one liner (if possible). Or…
Zippyduda
  • 107
  • 2
  • 7
  • 19
0
votes
1 answer

Android restart main activity with code

I have to restart my application at an interval such as 1 hour. But when i try the code below, a new ctivity is starting but the activity which i want to close is still running on background as a thread :S What do i have to do? Thanks.. if…
GK Soft
  • 103
  • 2
  • 12
0
votes
1 answer

restart the app after phone call

I'm having a problem to return to my app after a call as after the call is ended it sends me to the main screen instead of my app. public class ButtonView extends FrameLayout { private static final String TAG =…
igor
  • 716
  • 1
  • 9
  • 27
0
votes
1 answer

getBaseContext() undefined how to solve without extension

This code should restart my app: Intent i = getBaseContext().getPackageManager() .getLaunchIntentForPackage(getBaseContext().getPackageName()); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); getContext().startActivity(i); but I get a massege…
igor
  • 716
  • 1
  • 9
  • 27
0
votes
1 answer

Asking user to restart app via exit(0) in iphone?

I want user to start new session at some point of time in my app, so can i ask user to restart app now using popup and if he clicked 'yes' .i exit the app using exit(0). is it valid under apple human guidelines?
Arun jalota
  • 252
  • 2
  • 14
0
votes
1 answer

ActiveMQ -- Messages not being delivered until the Broker is restarted

I am using ActiveMQ v5.6. It has one consumer. It works fine in most of the cases. But sometimes, messages wont be dispatched and they accumulate in the queue. BUT, once I restart the Broker, it works fine again. I searched to see if anyone else was…
Kathy
  • 96
  • 2
  • 9
0
votes
1 answer

Restart app at specific view or page

I wrote a simple iPad app in Xcode 4. When I exit the app then go back into the app, it starts on the last page that I was at before exit. How do I have the app restart at a designated page at each restart?
0
votes
1 answer

CMD to have a keystroke stop a script

I need to create a batch script that will run a reboot command but give you the option to stop the script with "the push of any key". Ultimately I want to add it to my scheduled tasks set at 3:00 am and have it countdown from 30 minutes. I want to…
Matt P
  • 618
  • 2
  • 12
  • 20
0
votes
5 answers

Stopping an activity and restarting it (android)

I have a login screen on my app, and as of now you can press the back button to go back to the login screen. I do not want that to happen. Once the user logs in, the app should stop the login activity so the user can't go back to it. On the menu…
user1513687
  • 173
  • 2
  • 13
0
votes
0 answers

Linux shutodown -r message redirected to a php script?

I am trying to setup a system where if the Linux server is going down for a restart, PHP will automatically displaying warning messages saying for example.. "Server going down for restart in X minutes". I noticed after scheduling a restart that…
Mitch
  • 519
  • 2
  • 7
  • 16
0
votes
5 answers

Executing sc.exe from .NET Process unable to start and stop service

I'm trying to restart the service from a remote machine. Here is my code. The problem is that I need to enter startinfo.filename = "sc.exe" since I'm putting "start /wait sc" this is causing an error. Here is my code, any thoughts. Also if anyone…
Jason
0
votes
1 answer

How To Restart My Server In Java

Well here is the shutdown method public static void restart() { closeServices(); System.gc(); try { Runtime.getRuntime().exec("run.cmd"); System.exit(0); } catch (Throwable e) { Logger.handle(e); } } And…
Jonathan Beaudoin
  • 2,158
  • 4
  • 27
  • 63
0
votes
2 answers

Starting and stopping a named instance of SQL server 2005 from a client computer

The issue I'm running into is that I don't always have access to the server but I need to restart the database on the server. Is this possible if so how would I do this? I know you can start and stop a named instance from cmd from the server. Not…
Jason
0
votes
1 answer

Debugging ASP.NET website from Visual Studio causes restart of the website

Somehow, since some time I'm experiencing problems with debugging my ASP.NET website. Every time I try to debug the website ASP.NET shuts down (global.asax_Application_End is called). I believe this is triggered because the site is built by Visual…
Jaap
  • 3,081
  • 2
  • 29
  • 50