aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Di Maria <michele@nt2.it>2012-02-22 20:13:22 +0100
committerMichele Di Maria <michele@nt2.it>2012-02-22 20:13:22 +0100
commitc1008fb04b44d5e6d15f87b4c46d6abb0ac529a7 (patch)
treea81a855b070af89e8de94f79823335b994227e94
parent48f2c6854fd11937f21fc6cf409e3eb16ce66958 (diff)
downloadpfsense-packages-c1008fb04b44d5e6d15f87b4c46d6abb0ac529a7.tar.gz
pfsense-packages-c1008fb04b44d5e6d15f87b4c46d6abb0ac529a7.tar.bz2
pfsense-packages-c1008fb04b44d5e6d15f87b4c46d6abb0ac529a7.zip
Removed the while cycle to stop the service.
-rw-r--r--config/lcdproc-dev/lcdproc.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc
index fc91dd8a..6c245058 100644
--- a/config/lcdproc-dev/lcdproc.inc
+++ b/config/lcdproc-dev/lcdproc.inc
@@ -500,14 +500,14 @@
}
/* generate rc file start and stop */
$stop = <<<EOD
-while [ `ps auxw |awk '/lcdproc_client.ph[p]/ {print $2}'| wc -l` != 0 ];
-do
- ps auxw |awk '/lcdproc_client.ph[p]/ {print $2}'|xargs kill
-done
-while [ `ps auxw |awk '/LCD[d]/ {print $2}'| wc -l` != 0 ];
-do
- ps auxw |awk '/LCD[d]/ {print $2}'|xargs kill
-done
+if [ `ps auxw |awk '/lcdproc_client.ph[p]/ {print $2}'| wc -l` != 0 ]; then
+ ps auxw |awk '/lcdproc_client.ph[p]/ {print $2}'|xargs /bin/kill
+ sleep 1
+fi
+if [ `ps auxw |awk '/LCD[d]/ {print $2}'| wc -l` != 0 ]; then
+ ps auxw |awk '/LCD[d]/ {print $2}'|xargs /bin/kill
+ sleep 1
+fi
EOD;
$start = $stop ."\n";
$start .= "\t/usr/bin/nice -20 /usr/local/sbin/LCDd -c ". LCDPROC_CONFIG ."\n";