refactor: restructure inventory, split roles and add new services
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=dayz server
|
||||
Wants=network.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
User=steamcmd
|
||||
WorkingDirectory=/mnt/steamcmd/dayz
|
||||
ExecStart=/mnt/steamcmd/dayz/DayZServer -config=serverDZ-custom.cfg -port=2302
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,32 @@
|
||||
hostname = "oyacoi";
|
||||
password = "ff32167";
|
||||
passwordAdmin = "";
|
||||
description = "";
|
||||
enableWhitelist = 0;
|
||||
maxPlayers = 1;
|
||||
verifySignatures = 2;
|
||||
forceSameBuild = 1;
|
||||
disableVoN = 1;
|
||||
vonCodecQuality = 0;
|
||||
shardId = "123abc";
|
||||
disable3rdPerson=1;
|
||||
disableCrosshair=1;
|
||||
disablePersonalLight = 1;
|
||||
lightingConfig = 0;
|
||||
serverTime="SystemTime";
|
||||
serverTimeAcceleration=6;
|
||||
serverNightTimeAcceleration=12;
|
||||
serverTimePersistent=0;
|
||||
guaranteedUpdates=1;
|
||||
loginQueueConcurrentPlayers=5;
|
||||
loginQueueMaxPlayers=0;
|
||||
instanceId = 1;
|
||||
storageAutoFix = 1;
|
||||
|
||||
class Missions
|
||||
{
|
||||
class DayZ
|
||||
{
|
||||
template="dayzOffline.sakhal";
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
export templdpath=$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
|
||||
export SteamAppId=892970
|
||||
|
||||
echo "Starting server PRESS CTRL-C to exit"
|
||||
|
||||
# Tip: Make a local copy of this script to avoid it being overwritten by steam.
|
||||
# NOTE: Minimum password length is 5 characters & Password cant be in the server name.
|
||||
# NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall.
|
||||
./valheim_server.x86_64 -name "oyacoi" -port 2456 -world "world0" -password "ff32167" -public 0
|
||||
|
||||
export LD_LIBRARY_PATH=$templdpath
|
||||
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=valheim server
|
||||
Wants=network.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
User=steamcmd
|
||||
WorkingDirectory=/mnt/steamcmd/valheim
|
||||
ExecStart=/bin/bash /mnt/steamcmd/valheim/start_server-custom.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user