- 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
--- /dev/null
+--- 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);