aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev
diff options
context:
space:
mode:
Diffstat (limited to 'config/lcdproc-dev')
-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";