LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

7-days-to-die

Headless dedicated server for 7 Days to Die

TLDR

Start the server with a config file
$ [path/to]/startserver.sh -configfile=serverconfig.xml
copy
Start with the flags a dedicated host uses
$ [path/to]/startserver.sh -quit -batchmode -nographics -dedicated -configfile=serverconfig.xml
copy

SYNOPSIS

startserver.sh [unity-flags] -configfile=file

DESCRIPTION

startserver.sh launches a headless 7 Days to Die dedicated server. The script lives in the dedicated-server install directory and starts the Linux server binary with Unity player flags. -configfile selects the XML file that holds the world, ports, passwords, and player limit. The stock file is `serverconfig.xml` next to the script.A typical dedicated launch also passes -quit, -batchmode, -nographics, and -dedicated so the process does not open a window and exits when the server stops.

CONFIGURATION

serverconfig.xml

Server settings read at startup. Properties set there include the public name, the game port (26900 by default), the maximum player count, the world name, the game name, the server password, and Telnet administration. Edit the file, then restart the server.

CAVEATS

The command is the `startserver.sh` script shipped with the dedicated server, not a program named `7-days-to-die`. The server is proprietary and is installed from the game's dedicated-server depot. Ports must be reachable for players to join. Telnet administration is a separate listener and should not be exposed without a password.

SEE ALSO

screen(1), tmux(1)

RESOURCES

Copied to clipboard
Kai