mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
Added docker support
Docker doesn't really do anything with the '/quit'.
However, changing from 'quit' to 'serverprocess.kill("SIGINT");' solved this issue.
The node exits with:
'[dumb-init] Child exited with status 0. Goodbye.'
This commit is contained in:
1 parent
329f721b11
commit
49124021a8
1 file changed
+3
-3
@@ -433,8 +433,8 @@ write-data=${ path.resolve(config.instanceDirectory, instance) }\r\n
|
||||
fs.copySync(path.join(instancedirectory, "instanceMods"), path.join(instancedirectory, "mods"));
|
||||
|
||||
process.on('SIGINT', function () {
|
||||
console.log("Caught interrupt signal, sending /quit");
|
||||
messageInterface("/quit");
|
||||
console.log("Caught interrupt signal, sending ^C");
|
||||
serverprocess.kill("SIGINT");
|
||||
});
|
||||
|
||||
// Spawn factorio server
|
||||
@@ -1082,4 +1082,4 @@ function hashMods(instanceName, callback) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user