GeekROS 8 mesi fa
parent
commit
708c82d3d8

+ 0 - 1
tools/centos/etc/systemd/system/game.service

@@ -4,7 +4,6 @@ After=syslog.target network.target
 
 [Service]
 Type=simple
-User=root
 Environment=GODOT_SILENCE_ROOT_WARNING=1
 WorkingDirectory=/data/wwwroot/game/
 ExecStart=/data/wwwroot/game/server.x86_64 --headless

+ 1 - 1
tools/centos/etc/systemd/system/server.service

@@ -4,7 +4,7 @@ After=syslog.target network.target
 
 [Service]
 Type=simple
-User=root
+WorkingDirectory=/data/wwwroot/server/
 ExecStart=/data/wwwroot/server/main
 Restart=on-failure