diff options
author | Eric Little | 2019-01-26 21:48:29 +0800 |
---|---|---|
committer | Eric Little | 2019-01-26 21:48:29 +0800 |
commit | 941a04e969c18513c1aa529b4fba8607caa86037 (patch) | |
tree | 2f40bae6ef399657a66c92dcaa9cdf89c7a85b39 /dst-server-steamcmd.service | |
download | aur-dont-starve-together-server.tar.gz |
initial commit
Diffstat (limited to 'dst-server-steamcmd.service')
-rw-r--r-- | dst-server-steamcmd.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dst-server-steamcmd.service b/dst-server-steamcmd.service new file mode 100644 index 000000000000..8e21f34ac22b --- /dev/null +++ b/dst-server-steamcmd.service @@ -0,0 +1,14 @@ +[Unit] +Description=SteamCMD for Don't Starve Together Dedicated Server +After=local-fs.target network.target +Requires=local-fs.target network.target + +[Service] +Type=oneshot +User=dstds +WorkingDirectory=/var/lib/dstds +ExecStartPre=sh -c "[ -f steamcmd/steamcmd.sh ]||(mkdir steamcmd -p&&curl -sqL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar zxf - -C steamcmd)" +ExecStart=/var/lib/dstds/steamcmd/steamcmd.sh +login anonymous +app_update 343050 +quit + +[Install] +WantedBy=multi-user.target |