Compare commits

..

50 Commits

Author SHA1 Message Date
8001d4983b README.md aktualisiert 2024-01-08 13:21:51 +01:00
d79194eaeb scripts/start-watchdog.sh gelöscht 2024-01-08 13:13:49 +01:00
f36906ea2a scripts/start-server.sh aktualisiert 2024-01-08 13:13:42 +01:00
2cc611cbc3 scripts/start.sh aktualisiert 2024-01-08 13:09:37 +01:00
58e6b96b48 Dockerfile aktualisiert 2024-01-08 13:08:45 +01:00
17f3c42eff scripts/start-server.sh aktualisiert 2024-01-08 13:07:52 +01:00
e75dce5905 Dateien nach "config" hochladen 2024-01-08 13:04:22 +01:00
7bd9f725d6 Dockerfile aktualisiert 2024-01-08 12:26:24 +01:00
6144991342 „Dockerfile“ ändern 2023-05-02 10:16:05 +02:00
fc30ba0e5c „scripts/start.sh“ ändern 2022-10-25 11:09:57 +02:00
244cca033b „scripts/start-server.sh“ ändern 2022-06-26 21:37:10 +02:00
c019cd356e „scripts/start-watchdog.sh“ hinzufügen 2022-06-26 21:36:38 +02:00
f46bc69a7e „Dockerfile“ ändern 2022-06-26 21:36:15 +02:00
21cd5752bd „Dockerfile“ ändern 2022-06-26 21:34:13 +02:00
8988c4c91e „scripts/start-watchdog.sh“ löschen 2022-06-26 21:34:05 +02:00
4957a42a13 „scripts/start-server.sh“ ändern 2022-06-26 21:34:01 +02:00
e806676dd0 „Dockerfile“ ändern 2022-06-21 09:28:14 +02:00
247c2cdabc „scripts/start-watchdog.sh“ hinzufügen 2022-06-21 09:26:35 +02:00
5494f0a27f „scripts/start-server.sh“ ändern 2022-06-21 09:24:34 +02:00
9c8d8acff3 „Dockerfile“ ändern 2022-06-21 09:17:57 +02:00
c4efccf1f5 „scripts/start-server.sh“ ändern 2022-06-21 09:17:49 +02:00
549b5dccda „scripts/start-server.sh“ ändern 2022-06-21 09:15:29 +02:00
654b662ecf „Dockerfile“ ändern 2022-06-21 09:14:42 +02:00
1deab2c601 „scripts/start-server.sh“ ändern 2022-06-21 09:12:54 +02:00
363e7d3023 „Dockerfile“ ändern 2022-06-21 09:09:05 +02:00
c125c65770 „scripts/start-server.sh“ ändern 2022-06-21 09:08:54 +02:00
662e129e04 „Dockerfile“ ändern 2022-05-06 10:55:40 +02:00
540bcb9088 „README.md“ ändern 2022-04-18 14:27:16 +02:00
d738eabeef „scripts/start-server.sh“ ändern 2022-04-18 14:24:43 +02:00
d9e40876cb „scripts/start.sh“ ändern 2022-04-18 14:24:22 +02:00
c5ad79c18b „Dockerfile“ ändern 2022-04-18 14:24:08 +02:00
1c84355305 „scripts/start.sh“ ändern 2020-04-28 17:00:54 +02:00
f365810f12 „.drone.yml“ löschen 2020-03-08 21:08:24 +01:00
28394c43d0 „.drone.yml“ hinzufügen
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-05 20:17:16 +01:00
7297c7d9ef „scripts/start-server.sh“ ändern 2020-02-25 14:35:03 +01:00
f48368b220 „scripts/start.sh“ hinzufügen 2020-02-25 14:34:50 +01:00
34201c67df „Dockerfile“ ändern 2020-02-25 14:29:38 +01:00
facdfe8886 „Dockerfile“ ändern 2020-01-05 16:13:17 +01:00
70597f761c „scripts/start-server.sh“ ändern 2020-01-05 16:12:59 +01:00
d50f10f958 „Dockerfile“ ändern 2020-01-05 16:12:43 +01:00
3182749046 „Dockerfile“ ändern 2019-11-11 11:30:06 +01:00
3662b6e6d1 „scripts/start-server.sh“ ändern 2019-11-11 11:26:13 +01:00
0bf9735430 „scripts/start-server.sh“ ändern 2019-10-07 22:46:48 +02:00
928bcd589c „scripts/start-server.sh“ ändern 2019-10-07 22:40:52 +02:00
d454585586 Dateien hochladen nach „config“ 2019-10-07 22:37:44 +02:00
d6c7b68b01 „Dockerfile“ ändern 2019-10-07 22:36:17 +02:00
cc9fef8c94 „scripts/start-server.sh“ ändern 2019-10-07 22:35:59 +02:00
5ac311ace7 „scripts/start-server.sh“ ändern 2019-10-07 22:29:21 +02:00
6a92b07c61 „Dockerfile“ ändern 2019-10-07 22:22:11 +02:00
7d0b2023cc „scripts/start-server.sh“ ändern 2019-06-12 22:36:54 +02:00
6 changed files with 175 additions and 139 deletions

View File

@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.authors="admin@minenet.at"
LABEL org.opencontainers.image.source="https://github.com/ich777/docker-steamcmd-server"
RUN apt-get update && \
apt-get -y install --no-install-recommends lib32gcc-s1 libsqlite3-0 libgdiplus unzip && \
apt-get -y install --no-install-recommends lib32gcc-s1 screen && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"
@@ -12,16 +12,8 @@ ENV STEAMCMD_DIR="${DATA_DIR}/steamcmd"
ENV SERVER_DIR="${DATA_DIR}/serverfiles"
ENV GAME_ID="template"
ENV GAME_NAME="template"
ENV GAME_PARAMS="template"
ENV GAME_PORT=28015
ENV QUERY_PORT=28016
ENV RCON_PORT=28017
ENV APP_PORT=28018
ENV SERVER_NAME="RustDocker"
ENV SERVER_DISCRIPTION="Simple Unraid Rust Docker"
ENV OXIDE_MOD="false"
ENV CARBON_MOD="false"
ENV FORCE_OXIDE_INSTALLATION="true"
ENV GAME_PARAMS="-difficulty easy -loadlatest Mars Mars"
ENV GAME_PORT=27015
ENV VALIDATE=""
ENV UMASK=000
ENV UID=99
@@ -42,4 +34,4 @@ ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]
ENTRYPOINT ["/opt/scripts/start.sh"]

View File

@@ -1,5 +1,7 @@
# SteamCMD in Docker optimized for Unraid
This Docker will download and install SteamCMD. It will also install RUST and run it.
This Docker will download and install SteamCMD. It will also install Stationeers and run it.
**Configuration:** To configure your server edit the file 'settings.xml' which lives in the main directory from the container (please don't forget to stop the container before editing the file).
**Update Notice:** Simply restart the container if a newer version of the game is available.
@@ -8,37 +10,29 @@ This Docker will download and install SteamCMD. It will also install RUST and ru
| --- | --- | --- |
| STEAMCMD_DIR | Folder for SteamCMD | /serverdata/steamcmd |
| SERVER_DIR | Folder for gamefile | /serverdata/serverfiles |
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to use a beta version of the game enter this: '258550 -beta staging' or '258550 -beta prerelease' (without quotes). | 258550 |
| GAME_PARAMS | Enter here your extra game startup parameters if needed starting with (eg: '+rcon.port 27016 +rcon.password YOURPASSWORD' don't forget to add also a new port mapping with container and host port set to the corresponding RCON port) | +server.maxplayers 10 |
| SERVER_NAME | Name of the Server goes here | RustDockerServer |
| SERVER_DISCRIPTION | Server Description goes here | Simple Unraid Rust Docker Server |
| OXIDE_MOD | Set to 'true' (without quotes) to enable Oxide Mod, otherwise leave empty (the container will check on every start/restart if there is a newer version available). | false |
| CARBON_MOD | Set to 'true' (without quotes) to enable Carbon Mod, otherwise leave empty (the container will check on every start/restart if there is a newer version available). | false |
| GAME_PORT | Game port on which the server is running (has to match the port mapping in your container). | 28015 |
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '600760 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 600760 |
| GAME_PARAMS | Values to start the server | -difficulty easy -loadlatest Mars Mars |
| UID | User Identifier | 99 |
| GID | Group Identifier | 100 |
| VALIDATE | Validates the game data | false |
| VALIDATE | Validates the game data | blank |
| USERNAME | Leave blank for anonymous login | blank |
| PASSWRD | Leave blank for anonymous login | blank |
## Run example
```
docker run --name RUST -d \
-p 28015:28015/udp \
--env 'GAME_ID=258550' \
--env 'SERVER_NAME=RustDockerServer' \
--env 'SERVER_DISCRIPTION=Simple Unraid Rust Docker Server' \
--env 'GAME_PARAMS=+server.maxplayers 10' \
--env 'GAME_PORT=28015' \
docker run --name Stationeers -d \
-p 27015:27015/udp -p 27500:27500/udp \
--env 'GAME_ID=600760' \
--env 'GAME_PARAMS=-difficulty easy -loadlatest Mars Mars' \
--env 'UID=99' \
--env 'GID=100' \
--volume /path/to/steamcmd:/serverdata/steamcmd \
--volume /path/to/rust:/serverdata/serverfiles \
ich777/steamcmd:rust
--volume /path/to/stationeers:/serverdata/serverfiles \
ich777/steamcmd:stationeers
```
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!
This Docker is forked from mattieserver, thank you for this wonderfull Docker.
### Support Thread: https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/
### Support Thread: https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/

11
config/default.ini Normal file
View File

@@ -0,0 +1,11 @@
[SERVER]
SERVERNAME=Docker Stationeers
GAMEPORT=27500
UPDATERPORT=27015
PASSWORD=Docker
MAPNAME=Moon
DESCRIPTION=Stationeers Docker for Unraid
MAXPLAYER=20
[RCON]
RCONPASSWORD=DockerAdmin

128
config/settings.xml Normal file
View File

@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<SettingData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SettingsVersion>0.2.4677.21598</SettingsVersion>
<ShowFps>false</ShowFps>
<ShowLatency>false</ShowLatency>
<AutoSave>true</AutoSave>
<SaveInterval>300</SaveInterval>
<SavePath>/serverdata/serverfiles/saves</SavePath>
<HUDScale>50</HUDScale>
<TooltipOpacity>0.95</TooltipOpacity>
<IngamePortrait>true</IngamePortrait>
<ExtendedTooltips>true</ExtendedTooltips>
<ChatFadeTimer>10</ChatFadeTimer>
<DayLength>20</DayLength>
<LegacyInventory>false</LegacyInventory>
<ShowSlotToolTips>true</ShowSlotToolTips>
<ResearchPoolKey>ResearchOff</ResearchPoolKey>
<DeleteSkeletonOnDecay>false</DeleteSkeletonOnDecay>
<Monitor>1</Monitor>
<ScreenWidth>1920</ScreenWidth>
<ScreenHeight>1080</ScreenHeight>
<RefreshRate>60</RefreshRate>
<GraphicQuality>Fantastic</GraphicQuality>
<TextureQuality>Very High</TextureQuality>
<FullScreen>true</FullScreen>
<Vsync>false</Vsync>
<Shadows>High</Shadows>
<ShadowResolution>Very High</ShadowResolution>
<ShadowDistance>100</ShadowDistance>
<LightShadowDistance>50</LightShadowDistance>
<RoomControlTickSpeed>1</RoomControlTickSpeed>
<ShadowNearPlaneOffset>0.2</ShadowNearPlaneOffset>
<ShadowCascades>4</ShadowCascades>
<ThingShadowMode>High</ThingShadowMode>
<WorldOrigin>false</WorldOrigin>
<Brightness>100</Brightness>
<FieldOfView>70</FieldOfView>
<ColorBlind>None</ColorBlind>
<ParticleQuality>High</ParticleQuality>
<SoftParticles>true</SoftParticles>
<EnvironmentElements>true</EnvironmentElements>
<ExtendedTerrain>true</ExtendedTerrain>
<VolumeLight>Full</VolumeLight>
<PixelLightCount>8</PixelLightCount>
<MaxThingLights>256</MaxThingLights>
<Antialiasing>SSAA</Antialiasing>
<FrameLock>Off</FrameLock>
<AtmosphericScattering>true</AtmosphericScattering>
<AmbientOcclusion>Ultra</AmbientOcclusion>
<LensFlares>true</LensFlares>
<ChunkRenderDistance>150</ChunkRenderDistance>
<MineableRenderDistance>45</MineableRenderDistance>
<ThingRenderDistance>12</ThingRenderDistance>
<DisableWaterVisualizer>true</DisableWaterVisualizer>
<Clouds>false</Clouds>
<TerrainClutter>false</TerrainClutter>
<TerrainClutterMultiplier>1</TerrainClutterMultiplier>
<DoubleClickDelay>0.18</DoubleClickDelay>
<HelmetOverlay>true</HelmetOverlay>
<WeatherEventQuality>High</WeatherEventQuality>
<MasterVolume>100</MasterVolume>
<SoundVolume>100</SoundVolume>
<VoiceNotificationVolume>90</VoiceNotificationVolume>
<MusicVolume>100</MusicVolume>
<InterfaceVolume>100</InterfaceVolume>
<VirtualVoices>1024</VirtualVoices>
<RealVoices>64</RealVoices>
<UserSpeakerMode>Stereo</UserSpeakerMode>
<ServerName>Stationeers Docker</ServerName>
<StartLocalHost>true</StartLocalHost>
<ServerVisible>true</ServerVisible>
<ServerPassword>Docker</ServerPassword>
<AdminPassword />
<ServerAuthSecret>adminDocker</ServerAuthSecret>
<ServerMaxPlayers>15</ServerMaxPlayers>
<UpdatePort>27015</UpdatePort>
<GamePort>27500</GamePort>
<UPNPEnabled>true</UPNPEnabled>
<UseSteamP2P>true</UseSteamP2P>
<DisconnectTimeout>10000</DisconnectTimeout>
<NetworkDebugFrequency>500</NetworkDebugFrequency>
<LocalIpAddress>0.0.0.0</LocalIpAddress>
<AutoPauseServer>true</AutoPauseServer>
<LanguageCode>EN</LanguageCode>
<VoiceLanguageCode>EN</VoiceLanguageCode>
<Voice>false</Voice>
<PopupChat>true</PopupChat>
<CameraSensitivity>50</CameraSensitivity>
<Keyboard />
<InvertMouse>false</InvertMouse>
<InvertMouseWheelInventory>false</InvertMouseWheelInventory>
<MenuLite>false</MenuLite>
<MouseWheelZoom>true</MouseWheelZoom>
<FirstRun>true</FirstRun>
<VoiceNotifications />
<CompletedTutorials />
<CompletedScenarios />
<VerticalMovementAxis>
<Controller>None</Controller>
<Axis>None</Axis>
</VerticalMovementAxis>
<HorizontalMovementAxis>
<Controller>None</Controller>
<Axis>None</Axis>
</HorizontalMovementAxis>
<ForwardMovementAxis>
<Controller>None</Controller>
<Axis>None</Axis>
</ForwardMovementAxis>
<VerticalLookAxis>
<Controller>None</Controller>
<Axis>None</Axis>
</VerticalLookAxis>
<HorizontalLookAxis>
<Controller>None</Controller>
<Axis>None</Axis>
</HorizontalLookAxis>
<UseCustomWorkThreadsCount>false</UseCustomWorkThreadsCount>
<MinWorkerThreads>12</MinWorkerThreads>
<MinCompletionPortThreads>12</MinCompletionPortThreads>
<MaxWorkerThreads>140</MaxWorkerThreads>
<MaxCompletionPortThreads>70</MaxCompletionPortThreads>
<CoroutineTimeBudget>1</CoroutineTimeBudget>
<SmoothTerrain>false</SmoothTerrain>
<SmoothTerrainAngle>60</SmoothTerrainAngle>
<ConsoleBufferSize>1024</ConsoleBufferSize>
<LegacyCpu>false</LegacyCpu>
</SettingData>

View File

@@ -50,116 +50,28 @@ else
fi
fi
if [ "${OXIDE_MOD}" == "true" ] && [ "${CARBON_MOD}" == "true" ]; then
echo "---Oxide and Carbon mod enabled, you can only enable one at a time, putting container into sleep mode.--"
sleep infinity
fi
if [ "${OXIDE_MOD}" == "true" ]; then
echo "---Oxide Mod enabled!---"
CUR_V="$(find ${SERVER_DIR} -maxdepth 1 -name "OxideMod-*.zip" | cut -d '-' -f2)"
LAT_V="$(wget -qO- https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest | grep tag_name | cut -d '"' -f4)"
if [ -z ${LAT_V} ]; then
if [ -z ${CUR_V%.*} ]; then
echo "---Can't get latest Oxide Mod version and found no installed version, putting server into sleep mode!---"
sleep infinity
else
echo "---Can_t get latest Oxide Mod version, falling back to installed v${CUR_V%.*}!---"
LAT_V="${CUR_V%.*}"
fi
fi
if [ -z "${CUR_V%.}" ]; then
echo "---Oxide Mod not found, downloading!---"
rm -f ${SERVER_DIR}/OxideMod-*.zip
cd ${SERVER_DIR}
if wget -q -nc --show-progress --progress=bar:force:noscroll -O ${SERVER_DIR}/OxideMod-${LAT_V}.zip "https://github.com/OxideMod/Oxide.Rust/releases/download/${LAT_V}/Oxide.Rust-linux.zip" ; then
echo "---Successfully downloaded Oxide Mode v${LAT_V}!---"
else
echo "---Something went wrong, can't download Oxide Mod v${LAT_V}, putting server in sleep mode---"
sleep infinity
fi
unzip -o ${SERVER_DIR}/OxideMod-${LAT_V}.zip -d ${SERVER_DIR}
elif [ "${LAT_V}" != "${CUR_V%.*}" ]; then
cd ${SERVER_DIR}
rm -rf ${SERVER_DIR}/OxideMod-*.zip
echo "---Newer version of Oxide Mod v${LAT_V} found, currently installed: v${CUR_V%.*}---"
if wget -q -nc --show-progress --progress=bar:force:noscroll -O ${SERVER_DIR}/OxideMod-${LAT_V}.zip "https://github.com/OxideMod/Oxide.Rust/releases/download/${LAT_V}/Oxide.Rust-linux.zip" ; then
echo "---Successfully downloaded Oxide Mod v${LAT_V}!---"
else
echo "---Something went wrong, can't download Oxide Mod v${LAT_V}, putting server in sleep mode---"
sleep infinity
fi
unzip -o ${SERVER_DIR}/OxideMod-${LAT_V}.zip -d ${SERVER_DIR}
elif [ "$LAT_V" == "${CUR_V%.*}" ]; then
echo "---Oxide Mod v${CUR_V%.*} is Up-To-Date!---"
fi
if [ "${FORCE_OXIDE_INSTALLATION}" == "true" ]; then
unzip -o ${SERVER_DIR}/OxideMod-${LAT_V}.zip -d ${SERVER_DIR}
fi
fi
if [ "${CARBON_MOD}" == "true" ]; then
echo "---Carbon Mod enabled!---"
CUR_V="$(find ${SERVER_DIR} -maxdepth 1 -name "CarbonMod-*.tar.gz" | cut -d '-' -f2)"
LAT_V="$(wget -qO- https://api.github.com/repos/CarbonCommunity/Carbon/releases/latest | grep tag_name | cut -d '"' -f4)"
if [ -z ${LAT_V} ]; then
if [ -z ${CUR_V%.tar.gz} ]; then
echo "---Can't get latest Carbon Mod version and found no installed version, putting server into sleep mode!---"
sleep infinity
else
echo "---Can_t get latest Carbon Mod version, falling back to installed v${CUR_V%.tar.gz}!---"
LAT_V="${CUR_V%.tar.gz}"
fi
fi
if [ -z "${CUR_V%.tar.gz}" ]; then
echo "---Carbon Mod not found, downloading!---"
rm -f ${SERVER_DIR}/CarbonMod-*.tar.gz
cd ${SERVER_DIR}
if wget -q -nc --show-progress --progress=bar:force:noscroll -O ${SERVER_DIR}/CarbonMod-${LAT_V}.tar.gz "https://github.com/CarbonCommunity/Carbon/releases/download/${LAT_V}/Carbon.Linux.Release.tar.gz" ; then
echo "---Successfully downloaded Carbon Mode ${LAT_V}!---"
else
echo "---Something went wrong, can't download Carbon Mod ${LAT_V}, putting server in sleep mode---"
sleep infinity
fi
tar -xvf ${SERVER_DIR}/CarbonMod-${LAT_V}.tar.gz -C ${SERVER_DIR}
#unzip -o ${SERVER_DIR}/CarbonMod-${LAT_V}.zip -d ${SERVER_DIR}
elif [ "${LAT_V}" != "${CUR_V%.tar.gz}" ]; then
cd ${SERVER_DIR}
rm -rf ${SERVER_DIR}/CarbonMod-*.tar.gz
echo "---Newer version of Carbon Mod ${LAT_V} found, currently installed: v${CUR_V%.tar.gz}---"
if wget -q -nc --show-progress --progress=bar:force:noscroll -O ${SERVER_DIR}/CarbonMod-${LAT_V}.tar.gz "https://github.com/CarbonCommunity/Carbon/releases/download/${LAT_V}/Carbon.Linux.Release.tar.gz" ; then
echo "---Successfully downloaded Carbon Mod ${LAT_V}!---"
else
echo "---Something went wrong, can't download Carbon Mod ${LAT_V}, putting server in sleep mode---"
sleep infinity
fi
tar -xvf ${SERVER_DIR}/CarbonMod-${LAT_V}.tar.gz ${SERVER_DIR}
elif [ "$LAT_V" == "${CUR_V%.tar.gz}" ]; then
echo "---Carbon Mod ${CUR_V%.tar.gz} is Up-To-Date!---"
fi
if [ "${FORCE_CARBON_INSTALLATION}" == "true" ]; then
tar -xvf ${SERVER_DIR}/CarbonMod-${LAT_V}.tar.gz -C ${SERVER_DIR}
fi
source "${SERVER_DIR}/carbon/tools/environment.sh"
fi
echo "---Prepare Server---"
echo "---Checking if 'settings.xml' is present---"
if [ ! -f ${SERVER_DIR}/settings.xml ]; then
cd ${SERVER_DIR}
if wget -q -O ${SERVER_DIR}/settings.xml --show-progress --progress=bar:force:noscroll https://raw.githubusercontent.com/ich777/docker-steamcmd-server/stationeers/config/settings.xml ; then
echo "---Sucessfully downloaded configuration file 'settings.xml'---"
else
echo "---Something went wrong, can't download 'settings.xml', putting server in sleep mode---"
sleep infinity
fi
else
echo "---Configuration file 'settings.xml' found---"
fi
chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Setting Library path---"
export LD_LIBRARY_PATH=:/bin/RustDedicated_Data/Plugins/x86_64
find $SERVER_DIR -name "masterLog.*" -exec rm -f {} \;
echo "---Server ready---"
echo "---Start Server---"
cd ${SERVER_DIR}
if [ ! -f ${SERVER_DIR}/RustDedicated ]; then
echo "---Can't find game executable, putting server into sleep mode!---"
if [ ! -f ${SERVER_DIR}/rocketstation_DedicatedServer.x86_64 ]; then
echo "---Something went wrong, can't find the executable, putting container into sleep mode!---"
sleep infinity
else
${SERVER_DIR}/RustDedicated -batchmode -server.port ${GAME_PORT} -server.queryport ${QUERY_PORT} -rcon.port ${RCON_PORT} -app.port ${APP_PORT} -server.hostname "${SERVER_NAME}" -server.description "${SERVER_DISCRIPTION}" ${GAME_PARAMS}
fi
${SERVER_DIR}/rocketstation_DedicatedServer.x86_64 ${GAME_PARAMS} -settingspath ${SERVER_DIR}/settings.xml
fi

View File

@@ -26,9 +26,8 @@ chown -R ${UID}:${GID} ${DATA_DIR}
echo "---Starting...---"
term_handler() {
kill -SIGINT $(pidof RustDedicated)
tail --pid=$(pidof RustDedicated) -f 2>/dev/null
sleep 0.5
kill -SIGKILL $(pidof rocketstation_DedicatedServer.x86_64)
tail --pid=$(pidof rocketstation_DedicatedServer.x86_64) -f 2>/dev/null
exit 143;
}