[PR #3125] feat(command) adds a command to place the systemd service file in the right location #3926

Open
opened 2026-02-27 03:56:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/GameServerManagers/LinuxGSM/pull/3125
Author: @legendofmiracles
Created: 12/11/2020
Status: 🔄 Open

Base: developHead: master


📝 Commits (10+)

  • 9c41b66 Merge branch 'release/v20.6.0' into develop
  • 63f30ae Merge branch 'hotfix/v20.6.1' into develop
  • 7b65817 Merge branch 'hotfix/v20.6.2' into develop
  • 37d9d8e release v20.6.2
  • 5da8985 feat: adds a command to place the systemd service file in the right location
  • 05e236f fix(stop) stop will clear tmux text before entering stop command (#3142)
  • dc6b037 fix(update): redo steamcmd update part for new behavoir (#3139)
  • 55b3bbe fix(bmdm): add missing dependency ncurses libs (#3138)
  • 5d58dcf fix(minecraft): fix java ram assignment (#3147)
  • d0ecddf feat(config): add secrets config to store sensitive settings (#3080)

📊 Changes

121 files changed (+1707 additions, -433 deletions)

View changed files

📝 lgsm/config-default/config-lgsm/acserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/ahl2server/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/ahlserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/arkserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/arma3server/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/avserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/bb2server/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/bbserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/bdserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/bmdmserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/boserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/bsserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/bt1944server/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/btserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/ccserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/cmwserver/_default.cfg (+1 -0)
lgsm/config-default/config-lgsm/colserver/_default.cfg (+179 -0)
📝 lgsm/config-default/config-lgsm/csczserver/_default.cfg (+1 -0)
📝 lgsm/config-default/config-lgsm/csgoserver/_default.cfg (+2 -1)
📝 lgsm/config-default/config-lgsm/csserver/_default.cfg (+1 -0)

...and 80 more files

📄 Description

This PR adds a command to generate a systemd service file and places it in the /etc/systemd/system, so that the user can easily enable a gameserver upon boot, without having to write his/her own service file.

Why only systemd?

Because all the official supported distros use systemd and most distros in general as well.
If people request other init systems, i'd glady add support for those aswell.

  • New feature (change which adds functionality).

Checklist

  • This pull request uses the develop branch as its base.
  • This pull request Subject follows the Conventional Commits standard.
  • This code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have checked that this code is commented where required.
  • I have provided a detailed with enough description of this PR.
  • I have checked If documentation needs updating.

Documentation

EDIT: I opened a Pull request:
https://github.com/GameServerManagers/LinuxGSM-Docs/pull/54

Showcase

(the last information text, prints "the game" instead of this)
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/GameServerManagers/LinuxGSM/pull/3125 **Author:** [@legendofmiracles](https://github.com/legendofmiracles) **Created:** 12/11/2020 **Status:** 🔄 Open **Base:** `develop` ← **Head:** `master` --- ### 📝 Commits (10+) - [`9c41b66`](https://github.com/GameServerManagers/LinuxGSM/commit/9c41b667beef7cbd5de2bdc332cd0488e33c2939) Merge branch 'release/v20.6.0' into develop - [`63f30ae`](https://github.com/GameServerManagers/LinuxGSM/commit/63f30aeb17408e176a5eb3e90ac394dda5ff5e5b) Merge branch 'hotfix/v20.6.1' into develop - [`7b65817`](https://github.com/GameServerManagers/LinuxGSM/commit/7b658173af785c65113db6d85abab0eaa10643fd) Merge branch 'hotfix/v20.6.2' into develop - [`37d9d8e`](https://github.com/GameServerManagers/LinuxGSM/commit/37d9d8e748809bc876fb16ac319d7145f00cc604) release v20.6.2 - [`5da8985`](https://github.com/GameServerManagers/LinuxGSM/commit/5da898526fdca8f46ca99f0376ef7416b24a5428) feat: adds a command to place the systemd service file in the right location - [`05e236f`](https://github.com/GameServerManagers/LinuxGSM/commit/05e236f27ff16ac754f909af4226b533b771f2f7) fix(stop) stop will clear tmux text before entering stop command (#3142) - [`dc6b037`](https://github.com/GameServerManagers/LinuxGSM/commit/dc6b0378bccea31b576922b243a58349bccfc069) fix(update): redo steamcmd update part for new behavoir (#3139) - [`55b3bbe`](https://github.com/GameServerManagers/LinuxGSM/commit/55b3bbec6e4072cb56fa729212145d977dcbbe12) fix(bmdm): add missing dependency ncurses libs (#3138) - [`5d58dcf`](https://github.com/GameServerManagers/LinuxGSM/commit/5d58dcf8e70eae0c18a82d75f6797da613dce00e) fix(minecraft): fix java ram assignment (#3147) - [`d0ecddf`](https://github.com/GameServerManagers/LinuxGSM/commit/d0ecddfcbb6b76b5af42d501c082cc4dbe5e255c) feat(config): add secrets config to store sensitive settings (#3080) ### 📊 Changes **121 files changed** (+1707 additions, -433 deletions) <details> <summary>View changed files</summary> 📝 `lgsm/config-default/config-lgsm/acserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/ahl2server/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/ahlserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/arkserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/arma3server/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/avserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/bb2server/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/bbserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/bdserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/bmdmserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/boserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/bsserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/bt1944server/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/btserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/ccserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/cmwserver/_default.cfg` (+1 -0) ➕ `lgsm/config-default/config-lgsm/colserver/_default.cfg` (+179 -0) 📝 `lgsm/config-default/config-lgsm/csczserver/_default.cfg` (+1 -0) 📝 `lgsm/config-default/config-lgsm/csgoserver/_default.cfg` (+2 -1) 📝 `lgsm/config-default/config-lgsm/csserver/_default.cfg` (+1 -0) _...and 80 more files_ </details> ### 📄 Description This PR adds a command to generate a systemd service file and places it in the /etc/systemd/system, so that the user can easily enable a gameserver upon boot, without having to write his/her own service file. ### Why only systemd? Because all the official supported distros use systemd and most distros in general as well. If people request other init systems, i'd glady add support for those aswell. * [x] New feature (change which adds functionality). ## Checklist - [x] This pull request uses the `develop` branch as its base. * [x] This pull request Subject follows the Conventional Commits standard. * [x] This code follows the style guidelines of this project. * [x] I have performed a self-review of my code. * [x] I have checked that this code is commented where required. * [x] I have provided a detailed with enough description of this PR. * [x] I have checked If documentation needs updating. ## Documentation EDIT: I opened a Pull request: https://github.com/GameServerManagers/LinuxGSM-Docs/pull/54 ## Showcase (the last information text, prints "the game" instead of this) ![image](https://user-images.githubusercontent.com/30902201/101826334-c54ebd80-3b26-11eb-8224-3966b3696bc6.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#3926
No description provided.