Author: glen Date: Thu Feb 24 10:20:05 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix check of bot pid:
- exclude line itself with grep
- do not include php binary in grep pattern, we have might have php binary
called php4
---- Files affected:
SOURCES:
eventum-monitor-bot-process.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/eventum-monitor-bot-process.patch
diff -u /dev/null SOURCES/eventum-monitor-bot-process.patch:1.1
--- /dev/null Thu Feb 24 11:20:05 2005
+++ SOURCES/eventum-monitor-bot-process.patch Thu Feb 24 11:20:00 2005
@@ -0,0 +1,11 @@
+--- include/class.monitor.php 2005-02-24 00:15:00.000000000 +0200
++++ ./include/class.monitor.php 2005-02-24 12:17:51.000000000 +0200
+@@ -290,7 +290,7 @@
+ {
+ // check if any bot.php process is still running (lame, but oh well)
+ ob_start();
+- passthru("ps -ef | grep 'php -q bot.php'");
++ passthru("ps -ef | grep '[-]q bot.php'");
+ $contents = ob_get_contents();
+ ob_end_clean();
+ $lines = explode("\n", $contents);
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit