GameServerManagers / GameServerManagers/LinuxGSM

[Bug]: rustserver-game.log is not getting rotated

Open
#4,751 1 comment 0 reactions 0 assignees View on GitHub
command: console command: install command: start distro: Ubuntu game: Rust type: bug
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

### User story

As a server owner, I want the log files to rotate, just like the console & script folders so that I can access previous logs and it doesnt get overwritten.

### Game

Rust

### Linux distro

Ubuntu 24.04

### Command

command: start

### Further information

On a fresh server install, there is only rustserver-game.log. Every time the server restarts, it just overwrites this file, and does not produce a rotating log.

Someone in LGSM support showed this line of code, which shows only unreal2 will rotate log files.

![Image](https://github.com/user-attachments/assets/6c78a53f-8c8e-4df7-8bae-f41702492db3)

### Relevant log output

```shell
None, it is just the rustserver-game.log being overwritten anytime. If you need more log output please let me know.
```

### Steps to reproduce

Install Rust server
Start server
Stop Server
Start server

There will always be only 1 rustserver-game.log file and it never rotates.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.