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
This commit is contained in:
Binbin 2023-04-24 13:20:00 +08:00 committed by GitHub
parent e289798483
commit 78202f843f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4331,6 +4331,8 @@ int finishShutdown(void) {
serverLog(LL_WARNING, "Writing initial AOF. Exit anyway.");
} else {
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;
}
}