https://redmine.pfsense.org/
https://redmine.pfsense.org/favicon.ico?1678052116
2020-04-04T10:15:34Z
pfSense bugtracker
pfSense Packages - Bug #10427: LCDproc: Handle multiple lcdproc clients
https://redmine.pfsense.org/issues/10427?journal_id=45433
2020-04-04T10:15:34Z
Viktor Gurov
<ul></ul><p><a class="external" href="https://github.com/pfsense/FreeBSD-ports/pull/829">https://github.com/pfsense/FreeBSD-ports/pull/829</a></p>
pfSense Packages - Bug #10427: LCDproc: Handle multiple lcdproc clients
https://redmine.pfsense.org/issues/10427?journal_id=45459
2020-04-06T07:49:58Z
Jim Pingle
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Pull Request Review</i></li></ul>
pfSense Packages - Bug #10427: LCDproc: Handle multiple lcdproc clients
https://redmine.pfsense.org/issues/10427?journal_id=45479
2020-04-06T10:55:59Z
Renato Botelho
renato@netgate.com
<ul><li><strong>Status</strong> changed from <i>Pull Request Review</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>Renato Botelho</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>PR has been merged. Thanks!</p>
pfSense Packages - Bug #10427: LCDproc: Handle multiple lcdproc clients
https://redmine.pfsense.org/issues/10427?journal_id=45576
2020-04-12T17:57:36Z
Steve Wheeler
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>This works in as far as it avoids blowing up if there is more than one client. It now successfully kills all php clients so you don't end up with more every time the service restarts.</p>
<p>Restart the service and start a bunch of additional clients manually:<br /><pre>
Apr 12 23:53:24 LCDd LCDd version 0.5.9 starting
Apr 12 23:53:24 LCDd Using Configuration File: /usr/local/etc/LCDd.conf
Apr 12 23:53:24 LCDd Listening for queries on 127.0.0.1:13666
Apr 12 23:53:28 php lcdproc: Start client procedure. Error counter: (0)
Apr 12 23:53:29 LCDd Connect from host 127.0.0.1:27202 on socket 6
Apr 12 23:53:44 php lcdproc: Start client procedure. Error counter: (0)
Apr 12 23:53:45 LCDd Connect from host 127.0.0.1:32793 on socket 7
Apr 12 23:53:46 php lcdproc: Start client procedure. Error counter: (0)
Apr 12 23:53:46 php lcdproc: Start client procedure. Error counter: (0)
Apr 12 23:53:47 LCDd Connect from host 127.0.0.1:28011 on socket 8
Apr 12 23:53:47 LCDd Connect from host 127.0.0.1:44726 on socket 9
</pre></p>
<pre>
[2.4.5-RELEASE][admin@s4.stevew.lan]/root: ps -auxw | grep lcd
root 85681 0.5 0.4 49928 34404 0 S 23:53 0:00.12 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
root 86498 0.5 0.4 49928 34404 0 S 23:53 0:00.10 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
root 88687 0.4 0.4 49928 34404 0 S 23:53 0:00.09 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
root 76025 0.0 0.4 49928 34416 - SN 23:53 0:00.15 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
root 91864 0.0 0.0 6560 2444 0 S+ 23:53 0:00.00 grep lcd
</pre>
<p>Restart the service:<br /><pre>
Apr 12 23:55:35 LCDd Client on socket 6 disconnected
Apr 12 23:55:35 LCDd Client on socket 7 disconnected
Apr 12 23:55:35 LCDd Client on socket 8 disconnected
Apr 12 23:55:35 LCDd Client on socket 9 disconnected
Apr 12 23:55:36 LCDd Server shutting down on SIGTERM
Apr 12 23:55:37 LCDd LCDd version 0.5.9 starting
Apr 12 23:55:37 LCDd Using Configuration File: /usr/local/etc/LCDd.conf
Apr 12 23:55:37 LCDd Listening for queries on 127.0.0.1:13666
Apr 12 23:55:41 php lcdproc: Start client procedure. Error counter: (0)
Apr 12 23:55:42 LCDd Connect from host 127.0.0.1:35445 on socket 6
</pre></p>
<p>Only one client is restarted:<br /><pre>
[2.4.5-RELEASE][admin@s4.stevew.lan]/root: ps -auxw | grep lcd
root 45290 0.0 0.4 49928 34416 - SN 23:55 0:00.09 /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
root 83790 0.0 0.0 6560 2444 0 S+ 23:56 0:00.00 grep lcd
</pre></p>
<p>Other clients are unaffected. Manually started lcdproc clients will remain.</p>