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 Console.WriteLine(svc.Status switch
{ {
ServiceControllerStatus.StartPending => "Starting", ServiceControllerStatus.StartPending => "Active (starting)",
ServiceControllerStatus.StopPending => "Stopping", ServiceControllerStatus.StopPending => "Active (stopping)",
ServiceControllerStatus.Running => "Running", ServiceControllerStatus.Running => "Active (running)",
ServiceControllerStatus.ContinuePending => "Continuing", ServiceControllerStatus.ContinuePending => "Active (continuing)",
ServiceControllerStatus.PausePending => "Pausing", ServiceControllerStatus.PausePending => "Active (pausing)",
ServiceControllerStatus.Paused => "Paused", ServiceControllerStatus.Paused => "Active (paused)",
_ => "Stopped" _ => "Inactive (stopped)"
}); });
return svc.Status switch return svc.Status switch