Distinguish service status as active or inactive

pull/725/head
NextTurn 2020-09-06 00:00:00 +08:00 committed by Next Turn
parent 04f6c30d7c
commit 12525cc8fc
1 changed files with 7 additions and 7 deletions

View File

@ -813,13 +813,13 @@ namespace WinSW
{
Console.WriteLine(svc.Status switch
{
ServiceControllerStatus.StartPending => "Starting",
ServiceControllerStatus.StopPending => "Stopping",
ServiceControllerStatus.Running => "Running",
ServiceControllerStatus.ContinuePending => "Continuing",
ServiceControllerStatus.PausePending => "Pausing",
ServiceControllerStatus.Paused => "Paused",
_ => "Stopped"
ServiceControllerStatus.StartPending => "Active (starting)",
ServiceControllerStatus.StopPending => "Active (stopping)",
ServiceControllerStatus.Running => "Active (running)",
ServiceControllerStatus.ContinuePending => "Active (continuing)",
ServiceControllerStatus.PausePending => "Active (pausing)",
ServiceControllerStatus.Paused => "Active (paused)",
_ => "Inactive (stopped)"
});
return svc.Status switch