From 987743f7c41a42f982d05f454aa85be1eea53b79 Mon Sep 17 00:00:00 2001 From: Magi1053 Date: Wed, 10 Feb 2021 11:37:20 -0600 Subject: [PATCH] Move shutdown command to variable --- steamcmd_servers/valheim/egg-valheim.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/steamcmd_servers/valheim/egg-valheim.json b/steamcmd_servers/valheim/egg-valheim.json index a1239442..59ecf682 100644 --- a/steamcmd_servers/valheim/egg-valheim.json +++ b/steamcmd_servers/valheim/egg-valheim.json @@ -4,13 +4,13 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-02-10T11:01:34-06:00", + "exported_at": "2021-02-10T11:36:40-06:00", "name": "Valheim", "author": "magi1053@outlook.com", "description": "A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture.", "features": null, "image": "quay.io\/parkervcp\/pterodactyl-images:debian_source", - "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" > >(sed -uE \"{{FILTER}}\") & trap 'kill -2 $!; wait' 2 15; wait $!", + "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" > >(sed -uE \"{{FILTER}}\") & trap \"{{STOP}}\" 15; wait $!", "config": { "files": "{}", "startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}", @@ -78,6 +78,15 @@ "user_viewable": false, "user_editable": false, "rules": "string" + }, + { + "name": "Shutdown Command", + "description": "Commands to trigger a server shutdown.", + "env_variable": "STOP", + "default_value": "kill -2 $!; wait;", + "user_viewable": false, + "user_editable": false, + "rules": "required|string" } ] }