Table of Contents

Class SystemdServiceInstaller

Namespace
FishMMO.Installer
Assembly
FishMMO-Installer.dll

Generates and installs systemd unit files for FishMMO ASP.NET web servers (IPFetch, Patcher, WebGL). On Windows, logs a reminder and skips.

public static class SystemdServiceInstaller
Inheritance
SystemdServiceInstaller
Inherited Members

Methods

InstallAllAsync(string, IReadOnlyList<string>?)

Installs systemd units for all FishMMO web servers found under the monorepo root.

public static Task<InstallResult> InstallAllAsync(string fishmmoRoot, IReadOnlyList<string>? onlyServers = null)

Parameters

fishmmoRoot string

FishMMO monorepo root path.

onlyServers IReadOnlyList<string>

Optional list of server names to restrict registration to. When null or empty, all three are registered.

Returns

Task<InstallResult>

InstallResult indicating success or failure.

InstallAppHealthMonitorServiceAsync(string)

Installs the AppHealthMonitor daemon as a systemd service (Linux only).

public static Task<InstallResult> InstallAppHealthMonitorServiceAsync(string fishmmoRoot)

Parameters

fishmmoRoot string

Returns

Task<InstallResult>

InstallWindowsServicesAsync(string, IReadOnlyList<string>?)

Registers FishMMO web servers as Windows services via NSSM. Only runs on Windows; Linux uses systemd via InstallAllAsync(string, IReadOnlyList<string>?).

public static Task<InstallResult> InstallWindowsServicesAsync(string fishmmoRoot, IReadOnlyList<string>? onlyServers = null)

Parameters

fishmmoRoot string
onlyServers IReadOnlyList<string>

Returns

Task<InstallResult>