Doug

John is spot on - only PHANTOMS from root crontab please. Of course you have
to run a foreground shell to launch the PHANTOM so please use one of 3
options:

1. Don't use root 

2. Use great care and make sure there are no overlap opportunities (one at a
time)

3. Use an OS level "Lock" file and launch a script to launch the PHANTOM.
The script checks if the specified "lock file" exists and if so sleeps for a
short and random time - trying again. If it doesn't exist it creates the
file by echoing it's PID into the file, and then reads the file back to
check it only contains this process' PID. If so we have a GO and a UC
process can be used to fire a PHANTOM - when launched the lock file is
deleted. If not then try again (etc). You might want to build in some
"retry" check as well in case a stale lock file gets left for some reason.

Elegant? No - Works? - Pretty much....

My preference is "why root"? 

Regards

JayJay

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hester
Sent: 14 December 2007 21:40
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco
> Sent: Friday, December 14, 2007 5:00 AM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] anyone seen this error before?
> 
> Actually I think that's exactly what we are doing!
> 
> dougc

You want to make sure you only run UV cron jobs as phantoms.  If you run
them in the foreground they will all use the same shared memory segment.
If you ever have 2 UV foreground cron jobs overlap, you could have
problems ranging from the processes crashing to file corruption.  Here's
an example of one of our UV cron jobs:

umask 002
UV=`cat /.uvhome`/bin/uv
cd /uvdata/FABRIC.PROD
$UV "PHANTOM PGMDP0413"

-John
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to