Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-26 11:35:21 +0200
committerErich Eckner <git@eckner.net>2018-06-26 11:35:21 +0200
commit98135be47afde21363d39b6ea5b8be8f10e435a1 (patch)
tree497b2a46655baad8ddb046ade25176c2c0b0d97b
parent75ac23794d0cae9de578e53d342d7c128e7ee9f6 (diff)
lib/load-configuration: load values from database if mysqld is running (makes debugging/testing easier)
-rwxr-xr-xlib/load-configuration2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 7a6a4f3..c89e757 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -108,7 +108,7 @@ if ! ${i_am_the_master} && \
fi
# load static values from the database
-if ${i_am_the_master}; then
+if pgrep -x mysqld >/dev/null 2>&1; then
mysql_retrieve_static_information
fi