[Feature]: Additional options for monitor to be able to run a script when it restarts server

オープン
#4,554 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
linux, shell
領域
cli, devops

調査の方向性

monitor コマンドのエントリポイントと、issue で説明されている rustserver.cfg の処理から始めます。停止したサーバーが検出されて再起動される箇所を追跡し、その後、再起動前スクリプトの設定パスを定義します。monitor がサーバーを再起動する前に設定されたスクリプトが実行され、既存の再起動動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

command: monitor game: Rust info: alerts type: feature
User story

As server admin I want to improve automation for monitoring

Game

Rust but this feature may assist other games too

Linux distro

Other

Command

command: monitor

Further information

Rust fas a plugin named SmoothRestarter that can stop the server to allow the controlling script to perform an update for rust or oxide. It alerts the players to let them get back to base etc. If I allow it to stop the server when an oxide update is available, it stops the server, then monitor restarts it, but as I cant have it run another script, oxide is not updated. This cycle continues forever. Currently I have had to disable this feature as LinuxGSM doesnt appear to have an option to execute a script when monitor detects a stopped server.

It would be very useful if an option was added to rustserver.cfg to be able to specify a script to be run just prior to the restart to allow any updates to be performed.

主要言語
Shell
スター
4.9k
フォーク
866
平均マージ
17時間 58分
マージ済み PR(30日)
100

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GameServerManagers/LinuxGSM のほかの issue

GameServerManagers/LinuxGSM の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。