diff options
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 29c7d512d0..7b3920f76d 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -271,6 +271,12 @@ namespace Jellyfin.Server { _restartOnShutdown = false; _logger.LogCritical(ex, "Error while starting server"); + if (options.StartupMode is not (null or Configuration.StartupMode.MediaServer)) + { + // A MigrateSystem or SeedSystem run is started from a script, which can only tell that it failed by the exit code. + Environment.ExitCode = 1; + } + if (_setupServer!.IsAlive && !configurationCompleted) { _setupServer!.SoftStop(); |
