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

Đang mở Phù hợp với người mới
#5,153 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, linux, shell
Lĩnh vực
backend, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
Shell
Star
4.9k
Fork
870
Merge trung bình
20 giờ 11 phút
Pull request đã merge (30 ngày)
135

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.