10 Nov 2003 19:25:33 UTC
- Distribution: Watchdog
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (166 / 7 / 0)
- KwaliteeBus factor: 0
- License: unknown
- Activity24 month
- Download (7.73KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCLEMENSG Clemens Gesell
- CLASS METHODS
- SEE ALSO
Watchdog::Process - Check for process in process table
use Watchdog::Process; $s = new Watchdog::Process($name,$pstring); print $s->id, $s->is_alive ? ' is alive' : ' is dead', "\n";
Watchdog::Process is an extension for monitoring processes running on a Unix host. The class provides a trivial method for determining whether a service is alive. This class has only been successfully tested on Solaris 2.6.
Returns a new Watchdog::Process object. $name is a string which will identify the service to a human. $pstring is a string which can be used to identify a process in the process table.
Returns true if the service is alive, else false.
This class is unreliable on Linux as Proc::ProcessTable::Process::cmndline() sometimes returns undef.
Paul Sharpe <email@example.com>
Copyright (c) 1998 Paul Sharpe. England. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Watchdog::HTTP, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Watchdog::HTTP
For more information on module installation, please visit the detailed CPAN module installation guide.