diff --git a/satisfactory.service b/satisfactory.service new file mode 100644 index 0000000..b500b52 --- /dev/null +++ b/satisfactory.service @@ -0,0 +1,26 @@ +[Unit] +Description=Satisfactory Server +After=network.target + +[Install] +WantedBy=multi-user.target + +[Service] +ExecStart=/usr/bin/screen -DmS minecraft ./SatisfactoryDedicatedServer/FactoryServer.sh + +Restart=on-failure +RestartSec=60s + +ProtectControlGroups=true +ProtectHome=true +ProtectKernelModules=true +ProtectKernelTunables=true +ProtectSystem=full + +PrivateDevices=true +PrivateUsers=true + +User=minecraft +Group=minecraft + +WorkingDirectory=/home/steam/