To be honest in terms of database monitoring cron is usually the way to go.
The advantage Is that then you don't need to monitor the monitoring program.
As a DBA you need reliable data in terms of status etc... You could write an
overcomplicated daemon which monitors its state but if cron is an option its
much simpler and less can go wrong. 

-----Original Message-----
From: Toddy Prawiraharjo [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2007 13:12
To: beginners@perl.org
Subject: run perl as service

Hi all, 

I wrote a simple perl script to check some variables in SHOW STATUS in a
mysql server. Now, how do I run it as a service/daemon?
I want more flexibility than crontab which is based on time. Should I use
sleep? Or is there any other alternative? Thanks in advance.

 
Cheers,
 
Toddy Prawiraharjo
 




--
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/



This e-mail is from the PA Group.  For more information, see
www.thepagroup.com.

This e-mail may contain confidential information.  Only the addressee is
permitted to read, copy, distribute or otherwise use this email or any
attachments.  If you have received it in error, please contact the sender
immediately.  Any opinion expressed in this e-mail is personal to the sender
and may not reflect the opinion of the PA Group.

Any e-mail reply to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to