Install / Update Dayz und Mods (CF, COT, DF, Expansion-Bundle, Expansion-Licensed, Expansion-Animations)
~/servers/steamcmd/steamcmd.sh +force_install_dir ~/servers/dayz-server/ +login bente_lt +app_update 223350 +workshop_download_item 221100 1559212036 +workshop_download_item 221100 1564026768 +workshop_download_item 221100 2545327648 +workshop_download_item 221100 2116157322 +workshop_download_item 221100 2793893086 +workshop_download_item 221100 2572331007 +quit
Manueller Start mit extension bundle
cd ~/servers/dayz-server/
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/1559212036 ~/servers/dayz-server/1559212036
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/1564026768 ~/servers/dayz-server/1564026768
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2545327648 ~/servers/dayz-server/2545327648
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2116157322 ~/servers/dayz-server/2116157322
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2793893086 ~/servers/dayz-server/2793893086
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2572331007 ~/servers/dayz-server/2572331007
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/1559212036/keys/* ~/servers/dayz-server/keys/
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2545327648/keys/* ~/servers/dayz-server/keys/
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2116157322/keys/* ~/servers/dayz-server/keys/
./DayZServer -config=serverDZE.cfg -port=2301 "-mod=1559212036;1564026768;2545327648;2116157322;2793893086;2572331007;" -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck
Erstellen des Scripts
-
- mit mods: nano ~/servers/dayz-server/updateE.sh
/home/bernd/servers/steamcmd/steamcmd.sh +force_install_dir ~/servers/dayz-server/ +login bente_lt +app_update 223350 +workshop_download_item 221100 1559212036 +workshop_download_item 221100 1564026768 +workshop_download_item 221100 2545327648 +workshop_download_item 221100 2116157322 +workshop_download_item 221100 2793893086 +workshop_download_item 221100 2572331007 +quit ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/1559212036 ~/servers/dayz-server/1559212036
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/1564026768 ~/servers/dayz-server/1564026768
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2545327648 ~/servers/dayz-server/2545327648
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2116157322 ~/servers/dayz-server/2116157322
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2793893086 ~/servers/dayz-server/2793893086
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2572331007 ~/servers/dayz-server/2572331007
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/1559212036/keys/* ~/servers/dayz-server/keys/
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2545327648/keys/* ~/servers/dayz-server/keys/
ln -s ~/servers/dayz-server/steamapps/workshop/content/221100/2116157322/keys/* ~/servers/dayz-server/keys/
- mit mods: nano ~/servers/dayz-server/updateE.sh
- Ctrl + O
- Ctrl + X
- sudo chmod +x ~/servers/dayz-server/updateE.sh
- sudo nano /etc/systemd/system/dayzE-server.service
[Unit] Description=DayZ Dedicated Expansion Server Wants=network-online.target After=syslog.target network.target nss-lookup.target network-online.target [Service] # ExecStartPre=/home/bernd/servers/dayz-server/updateE.sh ExecStart=/home/bernd/servers/dayz-server/DayZServer -config=serverDZE.cfg -port=2301 "-mod=1559212036;1564026768;2545327648;2116157322;2793893086;2572331007;" -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck WorkingDirectory=/home/bernd/servers/dayz-server/ LimitNOFILE=100000 ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s INT $MAINPID User=bernd Group=users Restart=on-failure RestartSec=5s [Install] WantedBy=multi-user.target
- sudo systemctl daemon-reload
Daemon Commands
- sudo systemctl enable dayzE-server - Einschalten Server Autostart wenn Betriebssystem startet.
- sudo systemctl disable dayzE-server - Ausschalten Server Autostart wenn Betriebssystem startet.
- sudo systemctl start dayzE-server - Server starten.
- sudo systemctl restart dayzE-server - Server Restart.
- sudo systemctl stop dayzE-server - Server stoppen.
- sudo systemctl status dayzE-server - Server Status überprüfen.