summaryrefslogtreecommitdiff
path: root/data/operserv.example.conf
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-12 15:39:41 +0000
committerSadie Powell <sadie@witchery.services>2025-02-12 15:39:41 +0000
commit3e986b215e45c2fa15d1b07da8fef19e3560e45b (patch)
treeef0f6e3fef01987dc53596b14d7ede5a65834439 /data/operserv.example.conf
parent8486962fefb85c810f77a42e15e51d68af93c6ef (diff)
Add extra protections to avoid rebooting the wrong network.
Diffstat (limited to 'data/operserv.example.conf')
-rw-r--r--data/operserv.example.conf12
1 files changed, 11 insertions, 1 deletions
diff --git a/data/operserv.example.conf b/data/operserv.example.conf
index a320bd824..5b4447c48 100644
--- a/data/operserv.example.conf
+++ b/data/operserv.example.conf
@@ -649,7 +649,17 @@ command { service = "OperServ"; name = "SET"; command = "operserv/set"; permissi
*
* Used to quit, restart, or shutdown services.
*/
-module { name = "os_shutdown" }
+module
+{
+ name = "os_shutdown"
+
+ /*
+ * If enabled then server operators will be required to provide the network
+ * name to confirm that they are quitting, restarting, or shutting down the
+ * right server.
+ */
+ requirename = yes
+}
command { service = "OperServ"; name = "QUIT"; command = "operserv/quit"; permission = "operserv/quit"; }
command { service = "OperServ"; name = "RESTART"; command = "operserv/restart"; permission = "operserv/restart"; }
command { service = "OperServ"; name = "SHUTDOWN"; command = "operserv/shutdown"; permission = "operserv/shutdown"; }