aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/lcdproc/lcdproc.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/config/lcdproc/lcdproc.inc b/config/lcdproc/lcdproc.inc
index 3ae96f31..84c5765c 100644
--- a/config/lcdproc/lcdproc.inc
+++ b/config/lcdproc/lcdproc.inc
@@ -333,13 +333,8 @@ EOD;
));
conf_mount_ro();
- /* if lcdproc not running start it */
- if(!lcdproc_running()) {
- lcdproc_notice("Starting service lcdproc");
- lcdproc_action('start');
- }
/* or restart lcdproc if settings were changed */
- elseif($_POST['comport']) {
+ if(lcdproc_running($_POST['comport'])) {
lcdproc_notice("Restarting service lcdproc");
lcdproc_action('restart');
}