On Mon, 19 Jan 2004, Bryce wrote: > Does anyone know of a way to check for information pumped out of syslog? like > in var or something. I need help restarting a program that throws lots of > errors to syslog's virtual terminal. And i want to find a way to > automatically restart it.
One thing I once did was have a cron script tail the log in question, and if it sees certain patterns, restart the program. If you're using syslog-ng, you can put all the logs for this one program in its own file. Or you could pipe the error messages to a command which can restart the program, but that may be more complicated to set up. You can also run a program which tails a log file, looking for certain patterns. pop-before-smtp is a good example of this. -- CAUTION: Product will be hot after heating -- [EMAIL PROTECTED] mailing list
