This commit is contained in:
parent
d6f3c13816
commit
9f24dbf1e0
@ -63,7 +63,7 @@ mod winserv {
|
||||
}
|
||||
|
||||
ServiceControl::Preshutdown => {
|
||||
sender.send_quit("ouch or die").unwrap();
|
||||
sender.send_quit("ouch or die (sys reboot)").unwrap();
|
||||
*r2.lock().unwrap() = false;
|
||||
ServiceControlHandlerResult::NoError
|
||||
}
|
||||
@ -79,7 +79,7 @@ mod winserv {
|
||||
.set_service_status(ServiceStatus {
|
||||
service_type: SERVICE_TYPE,
|
||||
current_state: ServiceState::Running,
|
||||
controls_accepted: ServiceControlAccept::STOP,
|
||||
controls_accepted: ServiceControlAccept::STOP | ServiceControlAccept::PRESHUTDOWN,
|
||||
exit_code: ServiceExitCode::Win32(0),
|
||||
checkpoint: 0,
|
||||
wait_hint: Duration::default(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user