summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-03-12 14:14:15 +1300
committerthompsa <andy@fud.org.nz>2010-03-12 14:14:15 +1300
commit6f76920c94c2299240112b3ce9bd3238b9726989 (patch)
treeffb598e32526596b03d66e67165072256d6a5722 /etc/inc/services.inc
parent6661ea2525eb3d43069ad01616f1f905be94029c (diff)
downloadpfsense-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.inc2
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
OpenPOWER on IntegriCloud