forked from svrjs/svrjs
Enable saving the configuration file when process is exiting
This commit is contained in:
parent
601eed5f62
commit
cc859e0319
1 changed files with 2 additions and 3 deletions
|
@ -2078,10 +2078,9 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
|||
|
||||
process.on("exit", function (code) {
|
||||
try {
|
||||
// TODO: saveConfig function
|
||||
/*if (!configJSONRErr && !configJSONPErr) {
|
||||
if (!configJSONRErr && !configJSONPErr) {
|
||||
saveConfig();
|
||||
}*/
|
||||
}
|
||||
} catch (err) {
|
||||
serverconsole.locwarnmessage(
|
||||
"There was a problem while saving configuration file. Reason: " +
|
||||
|
|
Reference in a new issue