diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-04-26 13:47:33 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-04-26 13:47:33 +0000 |
commit | 6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718 (patch) | |
tree | f528b84d1cd3ee104d92a2320a9eabf77bc8c9eb /etc/inc/service-utils.inc | |
parent | 52947718175a67512a7b79c5d401f2ba7d536489 (diff) | |
download | pfsense-6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718.zip pfsense-6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718.tar.gz |
* Move other functions around to where it makes sense.
* Reduce somewhat require_once() overhead by removing the includes from gwlb.inc they are not needed.
Some more analysis is needed on the include path
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r-- | etc/inc/service-utils.inc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index 3b1cfa5..6c10017 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -137,11 +137,6 @@ function restart_service($name) { } } -function is_process_running($process) { - $running = (trim(shell_exec("ps axwu | grep '\b{$process}\b' | grep -v 'grep'")) != ''); - return $running; -} - function is_pid_running($pidfile) { $pid = trim(file_get_contents($pidfile)); $running = (trim(shell_exec("ps axwu | grep '\b{$pid}\b' | grep -v 'grep'")) != ''); |