Posted by Alvaro G. Vicario on 09/13/06 21:40
*** Karstens Rage escribió/wrote (Wed, 13 Sep 2006 09:37:56 -0700):
> tail -n0 -F /var/log/mystuff.log | php -c /etc/php.ini myscript.php &
>
> Everything works fine until logrotate rotates mystuff.log. Then the
> script just hangs there and no longer processes anything.
I believe you can configure logrotate to shut down you script and launch it
again. That's what allows, for instance, to get Apache logs rotated. Could
that be a solution?
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
[Back to original message]
|