improve many things/dep updates

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
renovate[bot]
2023-07-13 00:44:29 +00:00
committed by Zoey
parent c6ecb61c9b
commit 66bfcf8f6c
13 changed files with 267 additions and 344 deletions

View File

@@ -107,7 +107,7 @@ const internalNginx = {
logger.info('Testing Nginx configuration');
}
return utils.exec('nginx -t -g "error_log off;"');
return utils.exec('nginx -tq');
},
/**
@@ -120,13 +120,13 @@ const internalNginx = {
if (fs.existsSync(NgxPidFilePath)) {
const ngxPID = fs.readFileSync(NgxPidFilePath, 'utf8').trim();
if (ngxPID.length > 0) {
logger.info('Killing Nginx');
utils.exec(`kill ${ngxPID}`);
logger.info('Quitting Nginx');
utils.exec('nginx -s quit');
}
}
logger.info('Starting Nginx in three seconds');
setTimeout(() => {
utils.execfg('nginx');
utils.execfg('nginx -e stderr');
}, 3000);
});
},