Move shutdown command to variable

This commit is contained in:
Magi1053 2021-02-10 11:37:20 -06:00
parent 1f62dca1a0
commit 987743f7c4
No known key found for this signature in database
GPG Key ID: BEE429122735B1B2

View File

@ -4,13 +4,13 @@
"version": "PTDL_v1", "version": "PTDL_v1",
"update_url": null "update_url": null
}, },
"exported_at": "2021-02-10T11:01:34-06:00", "exported_at": "2021-02-10T11:36:40-06:00",
"name": "Valheim", "name": "Valheim",
"author": "magi1053@outlook.com", "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.", "description": "A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture.",
"features": null, "features": null,
"image": "quay.io\/parkervcp\/pterodactyl-images:debian_source", "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": { "config": {
"files": "{}", "files": "{}",
"startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}", "startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}",
@ -78,6 +78,15 @@
"user_viewable": false, "user_viewable": false,
"user_editable": false, "user_editable": false,
"rules": "string" "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"
} }
] ]
} }