diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-22 19:34:27 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-22 19:34:27 +0000 |
commit | 815af8fbb4bed02738adb2f1ce12b87e4f25ac60 (patch) | |
tree | d94277f7505bbc5f971fcab3d2f8882fe1da9d81 /etc/inc | |
parent | bc2e61006863d5d4565975fb4ec7c4288a1f327c (diff) | |
download | pfsense-815af8fbb4bed02738adb2f1ce12b87e4f25ac60.zip pfsense-815af8fbb4bed02738adb2f1ce12b87e4f25ac60.tar.gz |
ps a -> ps ax
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/service-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index aba47bd..918d89f 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -56,6 +56,7 @@ function write_rcfile($params) { $fout = fopen($fileprefix . $params['file'], "w"); fwrite($fout, $towrite); fclose($fout); + chmod($fileprefix . $params['file'], 0755); return; } @@ -125,7 +126,7 @@ function restart_service($name) { function is_service_running($service, $ps = "") { global $config; if(!$ps) { - exec("/bin/ps a | awk '{ print $5 }'", $psout); + exec("/bin/ps ax | awk '{ print $5 }'", $psout); array_shift($psout); foreach($psout as $line) { $ps[] = trim(array_pop(explode(' ', array_pop(explode('/', $line))))); |