


POE::Component::USsuePprOeErC:vo:inCstoormrip:bo:unSteuenpdte:rP:veSiruslpeedDr:ov:ciPusrmooercn:(t:3aSptu)ipoenrvised::Proc(3p)


NNAAMMEE
       POE::Component::Supervisor::Supervised::Proc - A supervision descriptor
       for UNIX processes.

SSYYNNOOPPSSIISS
           use POE;

           use POE::Component::Supervisor;
           use POE::Component::Supervisor::Supervised::Proc;

           POE::Component::Supervisor->new(
               children => [
                   POE::Component::Supervisor::Supervised::Proc->new(
                       program => [qw(memcached -m 64)],
                       restart_policy => "permanent",
                   ),
               ],
           );

           $poe_kernel->run;

DDEESSCCRRIIPPTTIIOONN
       This is a factory object that creates
       POE::Component::Supervisor::Handle::Proc objects.

AATTTTRRIIBBUUTTEESS
       See also "ATTRIBUTES" in POE::Component::Supervisor::Handle::Proc, all
       of the documented attributes that apply to handle creation are borrowed
       by this class.

       handle_class
           The class to instantiate.

           Defaults to POE::Component::Supervisor::Handle::Proc.

           Note that attributes are inherited only from
           POE::Component::Supervisor::Handle::Proc. If your handle class
           requires additional attributes, you must subclass your own
           "Supervised" variant.

           The "_inherit_attributes_from_handle_class" method can then be
           invoked on your subclass to reinherit all the attributes. Read the
           source of POE::Component::Supervisor::Supervised for more details.

MMEETTHHOODDSS
       See also "METHODS" in POE::Component::Supervisor::Supervised.

       spawn
           Called by POE::Component::Supervisor when a new instance of the
           child process should be spawned.

       is_abnormal_exit
           Used by "should_restart". See
           POE::Component::Supervisor::Supervised for details.



perl v5.12.2                2009-01-10                          1





POE::Component::USsuePprOeErC:vo:inCstoormrip:bo:unSteuenpdte:rP:veSiruslpeedDr:ov:ciPusrmooercn:(t:3aSptu)ipoenrvised::Proc(3p)


           Returns true if the "exit_code" argument is not equal to 0.
























































perl v5.12.2                2009-01-10                          2


