Skip to content

systemd auto install #2145

Open
Open

Description

@dgibbs64

Basic info
Game: LinuxGSM general
Distro: Systemd supported distros

Is your feature request related to a problem? Please describe.
Systemd is the standard way of managing services and starting on boot. However, it is not "simple" to use for a standard admin. It would be a good idea for convenience for the LinuxGSM script to install systemd script specific to itself and be able to also remove the systemd script as well.

Describe the solution you'd like
Automated installation of systemd using a new LinuxGSM command

Describe alternatives you've considered
The admin manually adding the script

Activity

  1. dgibbs64 commented on Jan 4, 2019

    @dgibbs64
    MemberAuthor
  2. Stormwind99 commented on Apr 24, 2019

    @Stormwind99

    I perhaps have some work to better support systemd including multiple server instances per game.

    See https://github.com/Stormwind99/LinuxGSM/tree/better-for-systemd

    Here is my use case (and thus current test case) for Minecraft, where I have multiple Minecraft servers running. The fork branch above creates a pid file for each server used below in the systemd minecraft.service file, and also makes a separate tmux server instance for each game server instance (so systemd isn't confused by a different slice's process (from another game instance) starting the current slice's process.

    [Unit]
    Description=Minecraft Server %I
    After=network-online.target
    Wants=network-online.target
    
    [Service]
    Type=forking
    User=minecraft
    WorkingDirectory=/var/games/minecraft/server/server-%i
    ExecStart=/var/games/minecraft/server/server-%i/mcserver-%i start
    ExecStop=/var/games/minecraft/server/server-%i/mcserver-%i stop
    Restart=on-failure
    PIDFile=/var/games/minecraft/server/server-%i/.mcserver-%i.pid
    
    [Install]
    WantedBy=multi-user.target
    
    GitHub
    Linux Game Server Managers_. Contribute to Stormwind99/LinuxGSM development by creating an account on GitHub.
  3. legendofmiracles commented on Dec 20, 2020

    @legendofmiracles

    very basic implementation in: #3152

  4. AndrewSav commented on Jun 18, 2021

    @AndrewSav

    What happened with 3125?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions