aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2012-02-20 13:26:25 -0800
committerScott Ullrich <sullrich@gmail.com>2012-02-20 13:26:25 -0800
commitda2ef840410ff50354b30c1deddda08dd325e34b (patch)
treec7c565a540473fdf35bbd90402f105f83b7a80c7 /config/lcdproc-dev/lcdproc.inc
parentcaf4f70c57b80e10be3950c4e394c7a4a965cb89 (diff)
parent48f2c6854fd11937f21fc6cf409e3eb16ce66958 (diff)
downloadpfsense-packages-da2ef840410ff50354b30c1deddda08dd325e34b.tar.gz
pfsense-packages-da2ef840410ff50354b30c1deddda08dd325e34b.tar.bz2
pfsense-packages-da2ef840410ff50354b30c1deddda08dd325e34b.zip
Merge pull request #216 from mdima/master
LCDProc: Again on the service start/stop/restart
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r--config/lcdproc-dev/lcdproc.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc
index 4034248d..fc91dd8a 100644
--- a/config/lcdproc-dev/lcdproc.inc
+++ b/config/lcdproc-dev/lcdproc.inc
@@ -503,17 +503,15 @@
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
- sleep 2
done
while [ `ps auxw |awk '/LCD[d]/ {print $2}'| wc -l` != 0 ];
do
ps auxw |awk '/LCD[d]/ {print $2}'|xargs kill
- sleep 2
done
EOD;
$start = $stop ."\n";
$start .= "\t/usr/bin/nice -20 /usr/local/sbin/LCDd -c ". LCDPROC_CONFIG ."\n";
- $start .= "\t/usr/bin/nice -20 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php\n";
+ $start .= "\t/usr/bin/nice -20 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php &\n";
/* write out the configuration */
conf_mount_rw();
lcdproc_write_config(LCDPROC_CONFIG, $config_text);