fix(cli): daemon mode does not delete sock files (#5750)

This commit is contained in:
chenos 2024-11-28 20:19:57 +08:00 committed by GitHub
parent 9d5fbf7d6c
commit fab699a679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,7 +61,9 @@ module.exports = (cli) => {
return; return;
} }
await postCheck(opts); await postCheck(opts);
deleteSockFiles(); if (!opts.daemon) {
deleteSockFiles();
}
const instances = opts.instances || process.env.CLUSTER_MODE; const instances = opts.instances || process.env.CLUSTER_MODE;
const instancesArgs = instances ? ['-i', instances] : []; const instancesArgs = instances ? ['-i', instances] : [];
if (opts.daemon) { if (opts.daemon) {