mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Implement stop and restart of controller/hosts (#554)
Implement remotely initiated stopping and restarting of the controller and hosts. Restarting is implemented by exiting with a non-zero exit code and relying on a process manager to start the procress again. To prevent accidentally trying to restart on a system that doesn't have a process manager present the --can-restart command line option needs to be passed to enable the restart operation.
This commit is contained in:
1 parent
885c18c0d4
commit
8884116ee9
15 files changed
+297
-25
No files matched your search
@@ -119,6 +119,18 @@ definePermission({
|
||||
grantByDefault: true,
|
||||
});
|
||||
|
||||
definePermission({
|
||||
name: "core.controller.stop",
|
||||
title: "Stop controller",
|
||||
description:
|
||||
"Stop the Node.js controller process making the cluster inoperable until someone with access to the system " +
|
||||
"it runs on manually starts it again.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.controller.restart",
|
||||
title: "Restart controller",
|
||||
description: "Restart the Node.js controller process if the system is set up for restarting.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.controller.get_config",
|
||||
title: "Get controller config",
|
||||
@@ -136,6 +148,18 @@ definePermission({
|
||||
"Subscribe to be notified when the system info detailing system specific information along with metrics " +
|
||||
"such as cpu, memory and disk usage for the controller and hosts are updated.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.host.stop",
|
||||
title: "Stop Hosts",
|
||||
description:
|
||||
"Stop Node.js host processes making the host inaccessible until someone with access to the system " +
|
||||
"it runs on manually starts it again.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.host.restart",
|
||||
title: "Restart Hosts",
|
||||
description: "Restart Node.js host processes if the system they run on are set up for restarting.",
|
||||
});
|
||||
definePermission({
|
||||
name: "core.host.get_config",
|
||||
title: "Get host configs",
|
||||
|
||||
Reference in new issue
Block a user