-
-
Save Taurolyon/38e66792be922afb39e3bb4cf2c1db20 to your computer and use it in GitHub Desktop.
Skeleton service file for SystemD (/etc/systemd/system/filename.service)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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