yxliaoyx / PZ_AWS_OnDemand_Server

Set up a Project Zomboid dedicated server quickly and simply.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PZ_AWS_OnDemand_Server

Set up a Project Zomboid dedicated server quickly and simply.

This repository is inspired by MineCloud.

Features

  • Easy to set up
  • Bypasses prompts when creating a server
  • Automatically shuts down when no one is online

Quick Start

Run the install script:

sudo /bin/bash install.sh

Requirements

Set up to use Amazon EC2

  • Required settings
    • Application and OS Images (Amazon Machine Image)
      • Ubuntu 22.04 LTS
    • Network settings (Add security group rule)
      • Type: Custom UDP
      • Port range: 16261-16262
      • Source type: Anywhere
  • Optional settings
    • Advanced details (Request Spot Instances)
      • Request type: Persistent
      • Interruption behavior: Stop

Please refer to EC2 On-Demand Pricing and Spot Instances Pricing for more information.

Warning

If you no longer want your Spot Instance. To ensure that no new Spot Instance is launched, you must first cancel the Spot Instance request. (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#terminating-a-spot-instance)

Installation

  1. Clone this repository:
git clone https://github.com/yxliaoyx/PZ_AWS_OnDemand_Server.git
  1. Edit startup parameters in PZ_AWS_OnDemand_Server/zomboid.service. Refer to Startup parameters for details.

  2. Run the install script:

cd PZ_AWS_OnDemand_Server
sudo /bin/bash install.sh

Management

The following commands are available:

# start a server
systemctl start zomboid.service

# stop a server
systemctl stop zomboid.service

# restart a server
systemctl restart zomboid.service

# check server status (ctrl-c to exit)
systemctl status zomboid.service

# access to the logs
journalctl -u zomboid.service -f

About

Set up a Project Zomboid dedicated server quickly and simply.

License:MIT License


Languages

Language:Shell 100.0%