bug(ins): server fails to start, srcds_run has CRLF line endings and needs bash

未关闭 适合新手
#5,153 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@dgibbs64 已经在做这个了。

开始于 2026年11月5日。

  • #5154 来自 @dgibbs64 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash, linux, shell
领域
backend, cli

调研方向

Start by locating the Insurgency (ins) server startup path and how LinuxGSM invokes the game's srcds_run launcher; the issue identifies CRLF line endings and use of pushd/popd under /bin/sh as causes. Check the relevant startup code and any existing Insurgency tests or checks. Done means the server starts and stays running on Ubuntu.

由索引模型根据 Issue 内容生成。

描述

distro: Ubuntu engine: source game: Insurgency

Description

The Insurgency (ins) server never starts on Ubuntu. The start fails with "Unable to start", and the monitor then restarts it about once a minute, indefinitely.

Cause

The srcds_run launcher shipped with the game has CRLF line endings and a #!/bin/sh shebang, so the kernel cannot find the interpreter (/bin/sh\r). Once the line endings are fixed it still fails on Ubuntu, because the script uses pushd/popd, which dash (/bin/sh) does not provide.

Expected behaviour

The server starts and stays running.

Environment

  • LinuxGSM v26.4.0 and v26.5.0
  • Ubuntu 26.04 container (gameserver:ins)
主要语言
Shell
星标
4.9k
派生
870
平均合并
20 小时 11 分钟
30 天内合并 PR
135

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GameServerManagers/LinuxGSM 的其他 Issue

查看 GameServerManagers/LinuxGSM 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。