You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
bla
This commit is contained in:
@@ -54,24 +54,26 @@ module.exports = {
|
|||||||
confFile = confFile.replace('.conf', '.win32.conf');
|
confFile = confFile.replace('.conf', '.win32.conf');
|
||||||
redis = 'redis-64\\tools\\redis-server.exe';
|
redis = 'redis-64\\tools\\redis-server.exe';
|
||||||
}
|
}
|
||||||
var rp = spawn.sync(redis, [confFile], { stdio: 'inherit' });
|
var rp = spawn(redis, [confFile], { stdio: 'inherit' });
|
||||||
|
|
||||||
done(null, {
|
waitForRedis(true, function () {
|
||||||
spawnFailed: function () {
|
done(null, {
|
||||||
return false; // Remove if as soon as it's not necessary anymore
|
spawnFailed: function () {
|
||||||
},
|
return false; // Remove if as soon as it's not necessary anymore
|
||||||
stop: function (done) {
|
},
|
||||||
rp.once('exit', function (code) {
|
stop: function (done) {
|
||||||
var error = null;
|
rp.once('exit', function (code) {
|
||||||
if (code !== null && code !== 0) {
|
var error = null;
|
||||||
error = new Error('Redis shutdown failed with code ' + code);
|
if (code !== null && code !== 0) {
|
||||||
}
|
error = new Error('Redis shutdown failed with code ' + code);
|
||||||
waitForRedis(false, function () {
|
}
|
||||||
return done(error);
|
waitForRedis(false, function () {
|
||||||
}, port);
|
return done(error);
|
||||||
});
|
}, port);
|
||||||
rp.kill('SIGTERM');
|
});
|
||||||
}
|
rp.kill('SIGTERM');
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, port);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user