summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-13 00:13:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-13 00:13:23 +0000
commit6a3464b7b8d999b5027da98b587c73b0cf1bcffa (patch)
tree4f923c95d1364718832f3980ff1915a745eeea51 /etc/inc/config.inc
parentb57ecc8827e3023a9e54850f1eb8525f817834b3 (diff)
downloadpfsense-6a3464b7b8d999b5027da98b587c73b0cf1bcffa.zip
pfsense-6a3464b7b8d999b5027da98b587c73b0cf1bcffa.tar.gz
Use ps awux
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index a3ce8a8..2c2ad25 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1209,7 +1209,7 @@ function system_start_ftp_helpers() {
* keep processing interfaces. kill pftpx if already
* running for this instance.
*/
- $helpers = exec("ps ax | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\" | cut -f2 -d\" \"");
+ $helpers = exec("ps awux | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\" | cut -f2 -d\" \"");
if($helpers)
mwexec("/bin/kill {$helpers}");
$interface_counter++;
@@ -1217,7 +1217,7 @@ function system_start_ftp_helpers() {
/* grab the current interface IP address */
$ip = find_interface_ip(convert_friendly_interface_to_real_interface_name($ifname));
/* if pftpx is already running then do not launch it again */
- $helpers = exec("ps ax | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\"");
+ $helpers = exec("ps awux | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\"");
if(!$helpers && $ip)
mwexec("/usr/local/sbin/pftpx -c {$port} -g 8021 {$ip}");
$interface_counter++;
OpenPOWER on IntegriCloud