mirror of https://github.com/winsw/winsw
Distinguish service status as active or inactive
parent
04f6c30d7c
commit
12525cc8fc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue