mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 08:13:12 +09:00
Merge pull request #239 from Hornwitser/fix-sigterm
Spawn factorio server deteached in client.js
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -6,7 +6,10 @@ Version 1.2.1
|
|||||||
|
|
||||||
- Updated node-factorio-api to v0.3.8 to fix mod downloads randomly breaking
|
- Updated node-factorio-api to v0.3.8 to fix mod downloads randomly breaking
|
||||||
([#229][#229].)
|
([#229][#229].)
|
||||||
|
- Fixed SIGINT being sent twice to Factorio server when interrupted by CTRL+C
|
||||||
|
on Linux ([#217][#217].)
|
||||||
|
|
||||||
|
[#217]: https://github.com/clusterio/factorioClusterio/issues/217
|
||||||
[#229]: https://github.com/clusterio/factorioClusterio/issues/229
|
[#229]: https://github.com/clusterio/factorioClusterio/issues/229
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|||||||
@@ -359,7 +359,8 @@ write-data=${ path.resolve(config.instanceDirectory, instance) }\r\n
|
|||||||
'--rcon-port', Number(process.env.RCONPORT) || instconf.clientPort,
|
'--rcon-port', Number(process.env.RCONPORT) || instconf.clientPort,
|
||||||
'--rcon-password', instconf.clientPassword,
|
'--rcon-password', instconf.clientPassword,
|
||||||
], {
|
], {
|
||||||
'stdio': ['pipe', 'pipe', 'pipe']
|
'stdio': ['pipe', 'pipe', 'pipe'],
|
||||||
|
'detached': process.platform === "linux",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
factorio.stdout.on("data", data => {
|
factorio.stdout.on("data", data => {
|
||||||
@@ -471,7 +472,8 @@ write-data=${ path.resolve(config.instanceDirectory, instance) }\r\n
|
|||||||
'--server-settings', instancedirectory + '/server-settings.json',
|
'--server-settings', instancedirectory + '/server-settings.json',
|
||||||
'--port', args.port || Number(process.env.FACTORIOPORT) || instanceconfig.factorioPort
|
'--port', args.port || Number(process.env.FACTORIOPORT) || instanceconfig.factorioPort
|
||||||
], {
|
], {
|
||||||
'stdio': ['pipe', 'pipe', 'pipe']
|
'stdio': ['pipe', 'pipe', 'pipe'],
|
||||||
|
'detached': process.platform === "linux",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user