Title: RE: [U2] PHANTOM forever

One of the ways to maintain phantom processes is to keep a control record that the phantom can read to see if the process should end.

ex;     <1> = PID (Unix Parent ID)
        <2> = Status (RUN, STOP, PAUSE)
        <3> = Sleep Time (In seconds)
        <4> = Date()
        <5> = Time()
        etc...

The process should begin by updating the PID, status of RUN and the date/time fields, but only if the status is STOP and PID is null.

Then it should reread the control to determine if it should continue running or not every sleep cycle.

A short admin program can then be written to administrate it.

Just my 2 pennies worth.

Shaun Ferguson

Reply via email to