From c963913d116c089dc6f22d29b504920ef55d47eb Mon Sep 17 00:00:00 2001 From: randy Date: Wed, 29 Jan 2025 06:18:18 -0700 Subject: [PATCH] Update 'Server Install' --- Server-Install.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Server-Install.md b/Server-Install.md index 6644343..51377ce 100644 --- a/Server-Install.md +++ b/Server-Install.md @@ -38,6 +38,32 @@ sudo mysql update members set rights = '2' where username = 'admin'; set their rights. 0 is normal player, 1 is moderator, 2 is admin. 3 or higher will cause error on login. ``` +### Starting the server +In the directory that you ran git clone, execute the Server/run file. Alternatively, you can set up a service: + +/etc/systemd/system/snowscape.service +``` +[Unit] +Description=The Snowscape Game Server +After=network.target + +[Service] +Type=simple +Restart=always +RestartSec=30 +ExecStart=/runescape/snowscape/Server/run + +[Install] +WantedBy=multi-user.target +``` +Then run the following: +``` +systemctl enable snowscape +systemctl start snowscape +``` + + + ### IntelliJ download (requires desktop environment). Not required to run the server, only required for dev. I haven't actually needed to use this yet, but here are the instructions regardless.