[Feature]: Grace period for stoponlyifnoplayers before forcing stop, restart or update
维护者通常 1 天内回复
@dgibbs64 已经在做这个了。
开始于 2026年11月1日。
评估
这个 Issue 还没有评估数据。
描述
Priority
priority: medium
User story
As a server admin using stoponlyifnoplayers, I want a blocked stop, restart or update to be forced after a set time so that busy servers still get their scheduled restarts and updates.
Game
No response
Linux distro
No response
Command
command: stop, command: restart, command: update, command: monitor
Problem statement
stoponlyifnoplayers="on" (added in v26.2.0, #4595) protects players by refusing to stop the server while anyone is online:
stopis refused.restartis postponed, andmonitorrestarts the server once it is empty.updatewill not stop the server whenstoponlyifnoplayersallcommands="on", so it waits for the next run.
Nothing ever forces it. Many servers are never completely empty, because of AFK players or idlers, so on those servers a scheduled restart or update can be postponed forever. This was raised in #786 and agreed as a follow-up.
Scope and impact
scope: all servers
Further information
Add a grace period setting, for example stoponlyifnoplayersmaxdelay in minutes (default 0 = wait indefinitely, the current behaviour):
- When a stop, restart or update is blocked because players are online, record when it was first blocked.
monitorand later runs keep checking. If the server empties, the command runs as it does today.- Once the grace period has passed and players are still online, the command runs anyway and the forced stop is logged.
- The record is cleared once the command completes.
This pairs well with in-game warnings (#674): warn players during the grace period, then force the stop when it ends.
Alternatives considered
Turning stoponlyifnoplayers off for scheduled jobs. That loses the protection completely rather than limiting how long it can delay a restart.
- 主要语言
- Shell
- 星标
- 4.9k
- 派生
- 870
- 平均合并
- 20 小时 11 分钟
- 30 天内合并 PR
- 135
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GameServerManagers/LinuxGSM 的其他 Issue
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bash可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭distro: Ubuntu engine: source game: Insurgency
难度 2/5 1-3 小时 新手友好度 72/100
GameServerManagers/LinuxGSM#5153 ·
维护者通常 1 天内回复
-
[Bug]: cs2server ignores the GSLT entered during install可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭command: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
难度 2/5 1-3 小时 新手友好度 82/100
GameServerManagers/LinuxGSM#5106 ·
维护者通常 1 天内回复
-
[Bug]: jc2, pvr, rwr and zps fail to start (library errors)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭distro: Ubuntu engine: avalanche2.0 engine: rwr engine: source engine: unreal5 game: Just Cause 2 game: Pavlov VR game: Running With Rifles game: Zombie Panic! Source info: dependency info: docker status: fixed in develop type: bug
难度 4/5 3-5 天 新手友好度 25/100
GameServerManagers/LinuxGSM#5163 ·
维护者通常 1 天内回复
-
[Bug]: GoldSrc update or validate can uninstall the shared Half-Life content可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭distro: Ubuntu engine: goldsrc game: Action Half-Life info: docker info: steamcmd status: fixed in develop type: bug
难度 4/5 3-5 天 新手友好度 25/100
GameServerManagers/LinuxGSM#5161 ·
维护者通常 1 天内回复
-
[Bug]: Dystopia segfaults on start: missing 32-bit libcurl可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭distro: Ubuntu engine: source game: Dystopia info: dependency info: docker status: fixed in develop type: bug
难度 1/5 1 小时以内 新手友好度 35/100
GameServerManagers/LinuxGSM#5159 ·
维护者通常 1 天内回复
查看 GameServerManagers/LinuxGSM 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
Frogging-Family/linux-tkg#1265 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
community-scripts/core#217 ·
维护者通常 1 天内回复
-
known-red S3: friction & debt
难度 2/5 1-3 小时 新手友好度 82/100
MedakaLang/medaka#4969 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
enhancement needs:sonnet ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复