diff options
author | thompsa <andy@fud.org.nz> | 2010-03-12 14:14:15 +1300 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-03-12 14:14:15 +1300 |
commit | 6f76920c94c2299240112b3ce9bd3238b9726989 (patch) | |
tree | ffb598e32526596b03d66e67165072256d6a5722 /etc/inc/services.inc | |
parent | 6661ea2525eb3d43069ad01616f1f905be94029c (diff) | |
download | pfsense-6f76920c94c2299240112b3ce9bd3238b9726989.zip pfsense-6f76920c94c2299240112b3ce9bd3238b9726989.tar.gz |
Use pgrep/pkill to save a bit of cpu.
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index cd2c7b6..2cb6988 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -40,7 +40,7 @@ function services_parse_dhcpd_hostnames() { global $config; - $ps = `ps awux | grep isc | grep -v grep | grep parse | awk '{ print $2 }'`; + $ps = `/bin/pgrep -f rc.parse-isc-dhcpd`; if($ps) exec("kill {$ps}"); // Launch if option enabled |