mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
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:
parent
e289798483
commit
78202f843f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user