mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Do not expect UPSTART_JOB to be redis
This commit is contained in:
parent
bc1a3b96e6
commit
b5686c1a4d
@ -3534,9 +3534,6 @@ int redisIsSupervised(void) {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (upstart_job != NULL) {
|
if (upstart_job != NULL) {
|
||||||
if (strcmp(upstart_job, "redis") != 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
redisLog(REDIS_NOTICE, "supervised by upstart, will stop to signal readyness");
|
redisLog(REDIS_NOTICE, "supervised by upstart, will stop to signal readyness");
|
||||||
raise(SIGSTOP);
|
raise(SIGSTOP);
|
||||||
unsetenv("UPSTART_JOB");
|
unsetenv("UPSTART_JOB");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user