From db26caf726685e44a8a6fc04e55e2006e2fa4ec5 Mon Sep 17 00:00:00 2001 From: Michele Di Maria Date: Sun, 18 Dec 2011 00:37:06 +0100 Subject: Stops the service before doing anything to the configuration. This solves a problem during reinstall and saving the settings while the service is running. --- config/lcdproc-dev/lcdproc.inc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'config/lcdproc-dev') diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index b82a59e6..5d2d9fb1 100644 --- a/config/lcdproc-dev/lcdproc.inc +++ b/config/lcdproc-dev/lcdproc.inc @@ -169,7 +169,9 @@ global $g; global $config; global $input_errors; - + + /* I just stop the package */ + lcdproc_action('stop'); config_lock(); $lcdproc_config = $config['installedpackages']['lcdproc']['config'][0]; @@ -201,6 +203,7 @@ break; default: lcdproc_warn("The selected com port is not valid!"); + config_unlock(); return; } @@ -481,14 +484,14 @@ EOD; /* generate rc file start and stop */ $stop = <<