Skip to content

Commit c64c1f7

Browse files
committed
Update systemd unit file
1 parent c409fcd commit c64c1f7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

gameserver.service

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Description=Python game server
44
After=network.target
55

66
[Service]
7-
ExecStart=/usr/bin/python3 -u /home/gamer/game-server/server/game_server.py
7+
ExecStart=/usr/bin/python3 -u /home/gameserver/python-game-server/server/game_server.py
88
Restart=always
99

10-
StandardOutput=append:/home/gamer/gameserver.log
10+
StandardOutput=append:/var/log/gameserver.log
1111
StandardError=inherit
1212

13-
User=gamer
14-
Group=gamer
13+
User=gameserver
14+
Group=gameserver
1515

1616
ProtectSystem=strict
1717
ProtectHome=tmpfs
@@ -32,7 +32,7 @@ CapabilityBoundingSet=
3232
NoNewPrivileges=yes
3333
MemoryDenyWriteExecute=true
3434

35-
BindReadOnlyPaths=/home/gamer/game-server/server
35+
BindReadOnlyPaths=/home/gameserver/python-game-server/server
3636

3737
[Install]
3838
WantedBy=multi-user.target

0 commit comments

Comments
 (0)