]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- fix check of bot pid:
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Feb 2005 10:20:00 +0000 (10:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
 - exclude line itself with grep
 - do not include php binary in grep pattern, we have might have php binary called php4

Changed files:
    eventum-monitor-bot-process.patch -> 1.1

eventum-monitor-bot-process.patch [new file with mode: 0644]

diff --git a/eventum-monitor-bot-process.patch b/eventum-monitor-bot-process.patch
new file mode 100644 (file)
index 0000000..78ae1da
--- /dev/null
@@ -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);
This page took 0.067492 seconds and 4 git commands to generate.