Unverified Commit 78202f84 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Report AOF failure status to systemd in shutdown (#12065)

Since we do report the RDB error in below:
```
serverLog(LL_WARNING,"Error trying to save the DB, can't exit.");
if (server.supervised_mode == SUPERVISED_SYSTEMD)
    redisCommunicateSystemd("STATUS=Error trying to save the DB, can't exit.\n");
goto error;
```

This may be an overlook in #6052
parent e2897984
...@@ -4331,6 +4331,8 @@ int finishShutdown(void) { ...@@ -4331,6 +4331,8 @@ int finishShutdown(void) {
serverLog(LL_WARNING, "Writing initial AOF. Exit anyway."); serverLog(LL_WARNING, "Writing initial AOF. Exit anyway.");
} else { } else {
serverLog(LL_WARNING, "Writing initial AOF, can't exit."); serverLog(LL_WARNING, "Writing initial AOF, can't exit.");
if (server.supervised_mode == SUPERVISED_SYSTEMD)
redisCommunicateSystemd("STATUS=Writing initial AOF, can't exit.\n");
goto error; goto error;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment