Community Maintained Fork
This project is a community-maintained fork of the original DayZ Server Manager for Linux project created by fiskce.
Original repository: https://github.com/fiskce/DayZ-Server-Manager-Linux
This fork exists to continue development, maintenance, bug fixes, and feature improvements for the DayZ community.
- Attention! Make sure the Steam account you are using owns DayZ, otherwise the mod installation process may fail.
- Attention! In some cases SteamCMD will not install the mission scripts. If this happens, create the
mpmissionsfolder manually and download the mission scripts from DayZ Central Economy.
DayZ Server Manager for Linux is a comprehensive and user-friendly script designed to automate server installation, updates, backups, and monitoring.
If you prefer to handle scheduled restarts and updates directly through Cron instead of using messages.xml, you can use the following example:
@reboot /home/dayz/dayzserver.sh start > /dev/null 2>&1
*/1 * * * * /home/dayz/dayzserver.sh monitor > /dev/null 2>&1
0 */2 * * * /home/dayz/dayzserver.sh checkmods > /dev/null 2>&1
0 */3 * * * /usr/bin/bercon-cli --ip 127.0.0.1 --port 2306 --password 12345678 "#shutdown"
# */30 * * * * /home/dayz/dayzserver.sh backup > /dev/null 2>&1
Explanation:
- @reboot – Automatically starts the DayZ server when the system boots.
- monitor – Runs every minute and restarts the server if it crashes or is shut down through supported restart methods.
- checkmods – Runs every 2 hours and checks for available DayZ server or Workshop mod updates. If updates are detected, an update flag is created and the updates will be installed automatically during the next server restart.
- bercon-cli "#shutdown" – Performs a scheduled server shutdown via BattlEye RCon every 3 hours. If the server runs as a
systemdservice withRestart=always(or themonitortask is active), it will be automatically started again, installing any pending updates before startup. - backup – Optional periodic backup task (disabled by default).
Replace /home/dayz/ with the actual home directory of the Linux user running the server.
This configuration keeps crash recovery completely independent from Steam update checks while still allowing updates to be installed automatically during the next scheduled restart.
./dayzserver.sh stopThe file is located in the server directory:
nano serverfiles/battleye/beserver_x64.cfg
Add (or edit) the following parameters:
RConPassword 12345678
RConPort 2306
RestrictRCon 0
After the first launch, an automatically generated file may be used instead:
~/serverfiles/battleye/beserver_x64_active_*.cfg
Use your own strong password instead of
12345678.
./dayzserver.sh startss -lun | grep 2306You should see something like:
UNCONN 0 0 0.0.0.0:2306
List players:
bercon-cli -i 127.0.0.1 -p 2306 -P 12345678 playersRun any RCon command:
bercon-cli -i 127.0.0.1 -p 2306 -P 12345678 command "<command>"If the players command returns a list of players, it means:
- BattlEye started successfully;
- RCon is working;
- the password is correct;
- the server is ready for automation (restarts, notifications, monitoring, etc.).
su -curl -L -o /usr/bin/bercon-cli https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-linux-amd64chmod +x /usr/bin/bercon-clibercon-cli --versionAfter installation, a regular user can also run bercon-cli, because the binary is located in /usr/bin and has execute permissions for all users (755).
You can verify this with:
su - <your_user_name>
bercon-cli --versionor, if you are already logged in as a regular user:
bercon-cli --versionVerify that RCON is working and the server responds:
bercon-cli \
--ip 127.0.0.1 \
--port 2306 \
--password 12345678 \
playersIf a list of players is displayed, the RCON connection is configured correctly.
To shut down the server gracefully via RCON, use the following command:
bercon-cli \
--ip 127.0.0.1 \
--port 2306 \
--password 12345678 \
"#shutdown"After receiving the command, the server will shut down. If it runs as a systemd service with Restart=always, it will be automatically started again.
Open the crontab:
crontab -eAdd a task to restart every 3 hours (00:00, 03:00, 06:00, ...):
0 */3 * * * /usr/bin/bercon-cli --ip 127.0.0.1 --port 2306 --password 12345678 "#shutdown"If needed, replace
/usr/bin/bercon-cliwith the path returned by thewhich bercon-clicommand.
