diff options
Diffstat (limited to 'windows-service/examples')
| -rw-r--r-- | windows-service/examples/simple_service.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/windows-service/examples/simple_service.rs b/windows-service/examples/simple_service.rs index d7b0416466..7125221d90 100644 --- a/windows-service/examples/simple_service.rs +++ b/windows-service/examples/simple_service.rs @@ -366,11 +366,13 @@ mod simple_service { | ServiceState::PausePending | ServiceState::ContinuePending => ServiceControlAccept::empty(), ServiceState::Running => { - ServiceControlAccept::STOP | ServiceControlAccept::PAUSE_CONTINUE + ServiceControlAccept::STOP + | ServiceControlAccept::PAUSE_CONTINUE | ServiceControlAccept::SHUTDOWN } ServiceState::Paused => { - ServiceControlAccept::STOP | ServiceControlAccept::PAUSE_CONTINUE + ServiceControlAccept::STOP + | ServiceControlAccept::PAUSE_CONTINUE | ServiceControlAccept::SHUTDOWN } ServiceState::StopPending | ServiceState::Stopped => ServiceControlAccept::empty(), |
