Monitor log when Process comes UP

Hi,

I need to grep a pattern in the log file of a process and send a mail if pattern found.But I am not able to figure out how do I detect when the process comes UP,it is started several times a day and each time it is started I need to perform this action. Please suggest something.

How is that process started, and by whom? Can you use a wrapper script to inform you about the start?

It is basically a daemon and gets run whenever it goes down, I cannot make any changes to its start script.

Don't know much about wrapper script.

Normally daemons shouldn't go down several times a day; are you sure it is well programmed?

If you can't influence its starting behaviour, you need to run a check script periodically to check for its presence.