restart

Capistrano not restarting

Capistrano is deploying cold, deploying updates and uploading the symlink fine. It will not however restart. I notice that permission is denied on the /script/process/reaper file. I have found a suggestion implying the file needs updated permissions. Does anyone have experience with this? Macintosh-5:barcoden fogonthedowns$ cap deploy...

restart multi-threaded perl script and close mysql connection

I have a Perl script that reads a command file and restarts itself if necessary by doing: myscript.pl: exec '/home/foo/bin/myscript.pl'; exit(0); Now, this works fine except for one issue. The thread that reads the command file does not have access to the DBI handle I use. And over a number of restarts I seem to build up the number o...

Sharepoint Designer - how to restart a workflow

Is there a way, through SPD (w/o the state machine extension), to restart a workflow? ...

bounce multiple servers using ant

Hi All, This is restart target code which is defined in build.xml target name="restart" propertycopy name="remote.host" from="deploy.${target.env}.host.${remote.id}" propertycopy name="remote.port" from="deploy.${target.env}.port.${remote.id}" sshexec trust="true" host="${remote.host}" port="${remote.port}" username="${scm.us...

Pascal Readln is restarting the PC

I have a problem, though it might be virus. In my school, when i compile pascal programms and IF there is readln on the end - the computer restarts. The OS is windows XP. Does anyone here know something about dealing this issue ? Thanks in advance. ...

Is onApplicationStart is good Idea in ColdFusion?

I have to use a Variable(Query Resultset) in ColdFusion, which will get the results from Other Application DB, and stores in Coldfusion Application. The main idea is that I need to call the other Application DB only at Server startup time and cache the results in local. And I need to read the variable in other pages in my Application. ...

What is the best way to self-restart programmatically a java application under Ubuntu

I have an application with several threads running. Each of them is wrapped with a cath(Throwable ) that I can use if something unexpected happen. What is the best way to restart the app itself under Ubuntu/Linux. I found this project "Java Service Wrapper" , any experience with it? I tried the -XX:OnError options, but it doesn't seems...

How do I start and stop background thread over and over again?

I have c# app that has UI and background threads. Based on user input I like to stop and start the background thread. I have two options here as I see: 1) totally stop and then start background thread as new thread ( I have not been able to this. I keep getting my process ended message) 2) Pause the background thread until user click r...

Do we really need to restart IIS 7 application pool? Do the same practice apply to other web servers?

I am just wondering why is restarting IIS 7 application pool consider a good practice? I know that it'll clean up orphan resources like threads or session state, but how does other web server deal with this kind of problem? Do java developer/admin have to restart weblogic/websphere/apache/tomcat every so often to clean up junk in memor...

Android: How to restart an activity within a tabhost?

I've searched and I know it seems some people frown upon using activities within tabs, but moving past that...how would I restart a tabbed activity while still keeping the tabs visible? I have an activity in a tab, I use the menu to create a new activity to update the tab's activity displayed info, when I return from the menu activity I ...

PHP APC uptime problem

I am on LAMP with Alternative PHP Cache (APC). It worked fine until yesterday when I updated the website and changed a few MySQL queries (I don't see how it would affect the APC opcode cache.) Today I see that the load has increased on the server and I see in Alternative PHP Cache, that the uptime of APC is somewhere around 15 minutes a...

Checkpointing and restarting X11 applications

My task is to checkpoint and restart X11 applications. Therefore I use the BLCR (Berkeley Lab Checkpoint/Restart (BLCR)) tool. Due to the fact that BLCR is not able (without modifications) to reinitiate the connection to the X-Server, I used an interposition library to log all Xlib function calls with their parameters to a text file. ...

Restart a Python Program

I'm writing a Python program that, if the user changes settings while running it, needs to be restarted to apply the changed settings. Is there a way of doing this? I'm thinking something along the lines of: import sys command_line = ' '.join(sys.argv) # Now do something with command_line # Now call my custom exit procedure Note: I'm ...

Display icon overlay without restart explorer

Please help me how can I display the icon overlays without restarting the explorer.exe? The problem Im in stuck here is the fact that I must always close the explorer.exe in taskbarmanager and re-open it. I want the way no need to restart shell like that. Any way in C++ ? ...

Apache automatically restarting itself every couple of requests

I just started having a problem where Apache will automatically restart after every few requests it receives. It's been working fine for a long time and I'm not sure why this would happen. The only thing I did recently was add an entry to my vhosts file to listen for another virtual host on the IP that it's running on. However, I reset t...

Remotely restart a linux service from local Windows or Mac machines

Sometimes my media server does not update its database, the only way to fix it is to restart the daemon. I would like users to be able to simply run an executable or script to do so without revealing any login information to them (which might result in inadvertent headaches). I feel the easiest way to do this would be to have an exec...

PHP Singleton: not holding instance

Hi All, I'm just becoming dive into php after ages working in vb.net. I wanna write a logger class that runs as singleon over my webapp, here the code: class cLog{ private $data = NULL; static private $instance = NULL; static public function getInstance(){ if(self::$instance == NULL){ echo "empty!"; self::$inst...

Have to Restart Apache When Using Django On Apache with mod_wsgi

I'm creating a web app with Django. Since I'm very familiar with Apache I setup my development environment to have Django run through Apache using mod_wsgi. The only annoyance I have with this is that I have to restart Apache everytime I change my code. Is there a way around this? ...

Is it possible to restart your app programatically

Hello, I'm looking for a way to reboot my app after an in app purchase has been made. Once the user upgrades I need the ads to go away and to basically reload the app from scratch so all the new functionality will be added the next time the app loads. I'm thinking the easiest way is going to be to exit the app then automatically restar...

Coldfusion server (apache httpd) is restarting frequently

Good day, We have Apache httpd server set up as our ColdFusion server on a Solaris box. And due to some code changes to the deployed ColdFusion application, our ColdFusion server (the httpd service and not the actual machine) is restarting frequently. Any ideas on where to start looking? ...or which logs to turn to? ...or common culpr...