summaryrefslogtreecommitdiffstats
path: root/ldadp.c
diff options
context:
space:
mode:
authorSimon Rettberg2023-11-27 16:57:05 +0100
committerSimon Rettberg2023-11-27 16:57:05 +0100
commitba2e716a8357496c3a834a8e799583ef58f95f82 (patch)
tree8e62953ff2c5e2944a4577720e5c588c77978d77 /ldadp.c
parentFix and improve numeric uid handling (diff)
downloadldadp-ba2e716a8357496c3a834a8e799583ef58f95f82.tar.gz
ldadp-ba2e716a8357496c3a834a8e799583ef58f95f82.tar.xz
ldadp-ba2e716a8357496c3a834a8e799583ef58f95f82.zip
Add autorestart option to exit(1) on unresponsive upstream
Diffstat (limited to 'ldadp.c')
-rw-r--r--ldadp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldadp.c b/ldadp.c
index 3f69745..2152903 100644
--- a/ldadp.c
+++ b/ldadp.c
@@ -155,6 +155,8 @@ static int loadConfig_handler(void *stuff, const char *section, const char *key,
keyFile = strdup(value);
} else if (strcmp(key, "debug") == 0) {
_debugLevel = atoi(value);
+ } else if (strcmp(key, "autorestart") == 0) {
+ _autoRestart = atoi(value) != 0;
} else {
printf("Unknown local config option '%s'\n", key);
}