From a7474fdb867f9cbbbfb92289dcec547b852c01a0 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sun, 29 Oct 2017 09:37:13 +0100 Subject: [PATCH] Give processes a better name, clusterioMaster and clusterioClient --- client.js | 5 +++++ master.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/client.js b/client.js index 58dd0689..8310c9bf 100644 --- a/client.js +++ b/client.js @@ -33,6 +33,11 @@ if (!fs.existsSync("./sharedMods/")) { const instance = process.argv[3]; const instancedirectory = './instances/' + instance; const command = process.argv[2]; + +// Set the process title, shows up as the title of the CMD window on windows +// and as the process name in ps/top on linux. +process.title = "clusterioClient "+instance; + var instanceInfo = {}; // function to handle sending commands into the game diff --git a/master.js b/master.js index 1e642f13..25d47a5e 100644 --- a/master.js +++ b/master.js @@ -1,3 +1,7 @@ +// Set the process title, shows up as the title of the CMD window on windows +// and as the process name in ps/top on linux. +process.title = "clusterioMaster"; + // configgy stuff debug = false;