Flutterby™! : Outage

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Outage

2009-05-12 19:12:47.525943+02 by Dan Lyke 0 comments

So the outage this morning was (apparently) boneheadedness unrelated to this, but...

I have this Perl app, and I wanted it to detach and run in the background under certain circumstances. So I set it up to:

system("setsid sh -c './bin/myapp.pl \& :' > /dev/null 2>\&1 < /dev/null");

except that the arguments I reinvoked it with re-spawned the app thinking it needed to detach.

It was exiting cleanly after that call, so it wasn't like I was using resources or anything, it wasn't a while(1){fork();} situation, it was just this rapidly changing PID that I couldn't get a handle on to kill. So I rebooted the machine.

Then I went to kill off the process on my local machine and realized I could temporarily rename sh, and in fact now, duh, I realize I can just temporarily rename ./bin/myapp.pl.

Anyway, thanks, Meuon, for whatever you did to get the machine to reboot after my Ubuntu upgrade goofiness that apparently left it in a state where it wasn't booting...

[ related topics: Perl Open Source ]

comments in ascending chronological order (reverse):

Comment policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.