Re: Force quit without monitor
Re: Force quit without monitor
- Subject: Re: Force quit without monitor
- From: Zak Burke <email@hidden>
- Date: Wed, 09 May 2007 09:23:47 -0400
Art Isbell wrote on 5/8/07 10:43 PM:
I'd take that a bit further and recommend that no one use this
script without rewriting it for WO 5 and the operating system under
which the WO apps are deployed. I.e., consider it an outline of how a
WO (re)startup script could be written.
Here is the WO-restart script I use to kill all WO apps, including
wotaskd, on Mac OS 10.4 client and server. It handles launchd or the
old school start script depending on how you configure it. You'll
need to run it with sudo, or as the user who owns your WO processes
in order to have permission to kill them.
zak.
#!/usr/bin/perl
# --
# -- 2006-08-01, zburke
# -- kill all WO-related processes then restart wotaskd
# --
# use launchd
use constant SCRIPT => "launchctl start com.webobjects.womonitor";
# use old-school start script
#use constant SCRIPT => "/Library/WebObjects/Startup/WebObjects start";
main();
sub main
{
print STDERR "restarting the WO services...\n";
my @ps = split "\n", `ps auxww | egrep
"com.webobjects._bootstrap.WOBootstrap|wotaskd.woa" | grep -v grep`;
# kill off existing java processes
for (@ps) {
chomp;
my @words = split;
print STDERR "killing $words[1]\n";
system("kill -9 $words[1]");
}
print STDERR "java processes killed...\n";
# restart wotaskd
print STDERR "restarting WebObjects\n";
system(SCRIPT);
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden