diff options
author | mdima <michele@nt2.it> | 2012-02-22 11:16:44 -0800 |
---|---|---|
committer | mdima <michele@nt2.it> | 2012-02-22 11:16:44 -0800 |
commit | 7275b9d0419d7644c58a05aee2833421e9de1393 (patch) | |
tree | 2ba532062b4e6e5a71ac0ba8ab75d8270a2eadd7 /config | |
parent | 6818b3408fa931455dbd7131b276d9873fb24e37 (diff) | |
parent | c1008fb04b44d5e6d15f87b4c46d6abb0ac529a7 (diff) | |
download | pfsense-packages-7275b9d0419d7644c58a05aee2833421e9de1393.tar.gz pfsense-packages-7275b9d0419d7644c58a05aee2833421e9de1393.tar.bz2 pfsense-packages-7275b9d0419d7644c58a05aee2833421e9de1393.zip |
Merge pull request #218 from mdima/master
Removed the while cycle to stop the service.
Diffstat (limited to 'config')
-rw-r--r-- | config/lcdproc-dev/lcdproc.inc | 16 |
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"; |