Bio::GMOD::Admin::Monitor::mysqld - Monitor mysqld
Check that mysqld is running
use Bio::GMOD::Admin::Monitor::mysqld; my $monitor = Bio::GMOD::Admin::Monitor::mysqld->new(); $monitor->check_status(-site => 'http://www.flybase.org');
# Typical values for initd systems might be something like: #$INITD = '/etc/rc.d/init.d/mysqld';
# For non-init systems #$MYSQLD = '/usr/local/mysql/bin/mysqld_safe'; #$MYSQLD = '/usr/bin/safe_mysqld';
Bio::GMOD::Admin::Monitor::httpd provides methods for monitoring and restarting httpd as necessary at a MOD.
Check the status of httpd at a specified site. This is done by fetching the top level URL, assuming that if it can be retrieved that httpd is up. Returns true if the provided site is up, false if it is down.
This method also populates the object with a variety of status strings. See the "ACCESSOR METHODS" section of Bio::GMOD::Admin::Monitor for additional details.
If SITE is not provided, the URL for the live site (fetched from the adaptor for the appropriate MOD) will be used:
my $monitor = Bio::GMOD::Admin::Monitor::httpd->new(-mod=>'WormBase'); $monitor->check_status(); # Checks the status of http://www.wormbase.org/
Restart httpd using the apachectl script. If not provided as an option, assumes that apachectl resides at /usr/local/apache/bin/apachectl.
Returns true if httpd is successfully restarted; otherwise returns false. Like check_status(), this method populates a number of status fields in the object. See the "ACCESSOR METHODS" section of Bio::GMOD::Admin::Monitor for additional details.
None reported.
Bio::GMOD, Bio::GMOD::Admin::Monitor
Todd W. Harris <harris@cshl.org>.
Copyright (c) 2003-2005 Cold Spring Harbor Laboratory.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Bio::GMOD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::GMOD
CPAN shell
perl -MCPAN -e shell install Bio::GMOD
For more information on module installation, please visit the detailed CPAN module installation guide.