restart

ASP.NET Web Application Restarts When Deleting Directory

I have some code in my logout routine that deletes some temporary session files when the user logs out or when the session expires. Deleting these folders causes my web app to restart. It does not error out or throws an exception it just restarts! Any ideas? ...

Monitor Process in Python?

I think this is a pretty basic question, but here it is anyway. I need to write a python script that checks to make sure a process, say notepad.exe, is running. If the process is running, do nothing. If it is not, start it. How would this be done. I am using Python 2.6 on Windows XP ...

Restart Mac OS X ungracefully using a C++ call?

How do I restart Mac OS X using C++ (not Objetive-C) without invoking any child processes? Don't care if it's ungraceful. system("reboot"); //Is not acceptable as it relies on invoking a process ...

How to restart REST Services?

I want to restart the REST service since even after adding a new service or services I don't see any change in the help page at all and afterward all the services don't work... Is their any solution to this... worst case scenario I have to create a new project all over again... By the way Im using C# .NET 4.0 ...

sql server connection fail after the sql server is restarted

hi, i am doing a unit test against my project. in one case, i have to stop the sql server and verify if my application could handle such exception elegantly. but i found the after this test case has run, any test case run after it would fail if the test case need to access the database. and the error was 'transportation level error'. ...

Identical FTPClient code, one works one doesn't

I have an AIDL-accesible service that downloads files via FTP, and uses FTPClient to obtain the file stream. The service obtains the host path and the file path and FTPClient.getFileStream() returns a fileStream for some files I have tested that are around 1MB in size. However for large files, the getFileStream returns null, and THROWS a...

Best way to restart activity on Android?

Hi, I'm building a game which works as some type of a quiz. I ask user the question and when he submits the answer(click or touch correct answer) I need to refresh the page with some other question. How should i implement this? How to wait for users answer and continue when onClick or OnTouch listener finishes? Should i use Handler cla...

Android WebView Reload when the app loads

Hi, I am writing an android application that has a webview. On the first load it works fine, I am able to browse and drill down to pages. My expected behavior is that if I leave the application and come back, it should redirect to the page that I have it set to call in the webView.loadUrl("[page i set here]") but it seems to load the ...

How to update application without stopping JEE server?

I have an application running on a JBoss server. We need update the application time to time. However, the JBoss is not allowed stop(restart) during update for business reason. How do I handle this tricky situation? Thanks! 2 cases: If the application is deployed in multi servers in cluster mode. If the application is deployed in a si...

Restart Home programmatically

I'm developing on Android. I have to restart home and all its components (widgets, shortcuts, etc..). For example, when we have a Force Close, the home screen restart and reload all its components. ...

Android - how to make sure my Service is restarted?

I have an Android application with a background running Service. When the Service crashes or gets killed by Android I can see that Android tries to restart it again. However the Service never actually restarts, I can see Android scheduling the restart but it new actually happens. My code is as follows: @Override public void onCreat...

Objective-C restart iphone or possibly another method?

I read that there was no method to restart the iPhone (at least that will go through the app store), so I am wondering if you have any other ideas. Basically, at my desk, I receive "No Service"... When I go out to my car (in a service area), I remain in No Service without being able to make a call until I restart my iPhone. I've tried ...

How to improve workflow for creating a Lua-based Wireshark dissector

I've finally created a Dissector for my UDP protocol in Lua for Wireshark, but the work flow is just horrendous. It consists of editing my custom Lua file in my editor, then double-clicking my example capture file to launch Wireshark to see the changes. If there was an error, Wireshark informs me via dialogs or a red line in the Tree ana...

How to send a custom command to a .Net windows Service from.Net code?

As in the following link, one can stop, start, and "stop, then start" a service using C# code. http://www.csharp-examples.net/restart-windows-service/ I have baked a .Net service that does implement OnStart and OnStop. However, I need to implement a "smart restart" functionality which is more involved than just stopping and then starti...

Self restart program on segfault under Linux

Under Linux what would be the best way for a program to restart itself on a crash by catching the exception in a crashhandler (for example on a segfault)? ...

How do I restart apache from a webpage apache is serving?

I have a script server side (both a shell and a python script) that can restart Apache and do some other cleanup I need. However, I want to expose a webhook, so when my repository is updated, then Apache will be restarted. However, I am currently serving the URL that restarts Apache using Apache, and when the script stops Apache or kills...

WinForm Application Prevents Machine Restart?

I have a WinForm application, and when it's open and I try to restart my computer, my computer just hangs and doesn't restart. I have to actually close the WinForm app, and then restart, and my computer restarts. What can I do to solve this? private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (!...

Heading does not update properly unless compass is started on iPhone 3gs/4g

I have a subtle bug that I'm trying to resolve regarding getting updated locations on the iPhone. Under "normal" conditions, the heading updates come in perfectly fine from the location manager. However, on reboot of the phone or killing all processes on the phone, the heading does not update properly. I always get a -1 for heading. ...

Restarting Hudson on Windows

I've been having an issue with Hudson on windows. Whenever I update Hudson or a plugin I get the option to restart when no jobs are running. If I click this button Hudson hangs and doesn't restart. I've tried restarting the Hudson service but this doesn't help, so end up having to reboot the box to bring Hudson back online. I've just u...

Inno setup ask user to restart system once installation is finished, to make system apply changes in HKLM

Im using inno setup 5.3 latest to package my vb.net application. Im setting Environment variables during installation to the windows system. It needs a reboot of the system to implement the changes made in the Environment variables. How do i prompt the user to reboot the system so as to implement changes ( as done in many applications). ...