Skip to content

Instantly share code, notes, and snippets.

@Taurolyon
Forked from vsbabu/springbootapp.service
Last active December 11, 2022 05:06
Show Gist options
  • Save Taurolyon/38e66792be922afb39e3bb4cf2c1db20 to your computer and use it in GitHub Desktop.
Save Taurolyon/38e66792be922afb39e3bb4cf2c1db20 to your computer and use it in GitHub Desktop.
Skeleton service file for SystemD (/etc/systemd/system/filename.service)
[Unit]
Description=Satisfactory Dedicated Server
After=syslog.target
[Service]
User=steam
Group=steam
#Environment='STDOUT=/dev/null'
Environment='STDOUT=/home/steam/SatisfactoryDedicatedServer/server.log'
Environment='STDERR=/home/steam/SatisfactoryDedicatedServer/errors.log'
SyslogIdentifier=satisfactory
WorkingDirectory=/home/steam/SatisfactoryDedicatedServer
ExecStartPre=/bin/bash /home/steam/update-satisfactory.sh > ${STDOUT} 2> ${STDERR}
# this script only contains a single line: /usr/games/steamcmd +force_install_dir ~/SatisfactoryDedicatedServer +login anonymous +app_update 1690800 -beta public +quit
ExecStart=/bin/bash /home/steam/SatisfactoryDedicatedServer/FactoryServer.sh > ${STDOUT} 2> ${STDERR}
Restart=on-failure
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment