diff options
author | Simon Rettberg | 2023-11-27 16:57:05 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-11-27 16:57:05 +0100 |
commit | ba2e716a8357496c3a834a8e799583ef58f95f82 (patch) | |
tree | 8e62953ff2c5e2944a4577720e5c588c77978d77 /ldadp.c | |
parent | Fix and improve numeric uid handling (diff) | |
download | ldadp-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |