Я останавливаю Redis командой shutdown через CLI, но вижу по логам, что он вроде как сразу стартует...
7600:M 12 May 2021 03:08:55.520 * Ready to accept connections
<b>7600:M 12 May 2021 03:11:09.945 # User requested shutdown...</b>
7600:M 12 May 2021 03:11:09.945 * Saving the final RDB snapshot before exiting.
7600:M 12 May 2021 03:11:09.948 * DB saved on disk
7600:M 12 May 2021 03:11:09.948 * Removing the pid file.
<b>7600:M 12 May 2021 03:11:09.948 # Redis is now ready to exit, bye bye...</b>
7613:C 12 May 2021 03:11:10.244 # systemd supervision requested or auto-detected, but Redis is compiled without libsystemd support!
<b>7613:C 12 May 2021 03:11:10.244 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo</b>
7613:C 12 May 2021 03:11:10.244 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=7613, just started
7613:C 12 May 2021 03:11:10.244 # Configuration loaded
7613:M 12 May 2021 03:11:10.245 * Increased maximum number of open files to 10032 (it was originally set to 1024).
7613:M 12 May 2021 03:11:10.245 * monotonic clock: POSIX clock_gettime
7613:M 12 May 2021 03:11:10.246 * Running mode=standalone, port=6379.
7613:M 12 May 2021 03:11:10.246 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
7613:M 12 May 2021 03:11:10.246 # Server initialized
7613:M 12 May 2021 03:11:10.247 * Loading RDB produced by version 6.2.3
7613:M 12 May 2021 03:11:10.247 * RDB age 1 seconds
7613:M 12 May 2021 03:11:10.247 * RDB memory usage when created 0.83 Mb
7613:M 12 May 2021 03:11:10.247 * DB loaded from disk: 0.000 seconds
7613:M 12 May 2021 03:11:10.247 * Ready to accept connections
Статус:
Правильно ли я понимаю, что служба продолжает работать, но сервисный процесс остановлен? Нужно ли останавливать службу для чистого выключения сервера?