From 6661ea2525eb3d43069ad01616f1f905be94029c Mon Sep 17 00:00:00 2001 From: thompsa Date: Fri, 12 Mar 2010 13:28:14 +1300 Subject: Use procatat instead of ps as the latter always prints a header, also use full paths. --- etc/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/util.inc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 686810f..76dba77 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -50,7 +50,7 @@ function isvalidpid($pid) { } function is_process_running($process) { - $running = (shell_exec("pgrep -x {$process}") != ''); + $running = (shell_exec("/bin/pgrep -x {$process}") != ''); return $running; } -- cgit v1.1