tailscale/tstest/integration
Aaron Klotz d915e0054c cmd/tailscaled: change Windows service shutdown and add optional event logging
Once a stop request is received and the service updates its status to `svc.StopPending`,
it should continue running *until the shutdown sequence is complete*, and then
return out of `(*ipnService).Execute`, which automatically sends a `svc.Stopped`
notification to Windows.

To make this happen, I changed the loop so that it runs until `doneCh` is
closed, and then returns. I also removed a spurious `svc.StopPending` notification
that the Windows Service Control Manager might be interpreting as a request for
more time to shut down.

Finally, I added some optional logging that sends a record of service notifications
to the Windows event log, allowing us to more easily correlate with any Service
Control Manager errors that are sent to the same log.

Change-Id: I5b596122e5e89c4c655fe747a612a52cb4e8f1e0
Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-04-29 15:13:11 -07:00
..
testcontrol all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
vms tstest/integration/vms: smoke test derphttp through mitm proxies 2022-04-12 13:24:29 -07:00
gen_deps.go tstest/integration: don't include stdlib deps in go generate output 2021-11-03 11:59:59 -07:00
integration_test.go ipn/store: add common package for instantiating ipn.StateStores 2022-02-28 13:23:33 -08:00
integration.go control/controlclient: use structured logging for MapResponse.ControlTime 2022-02-18 13:05:42 -08:00
tailscaled_deps_test_darwin.go ssh/tailssh: make the SSH server a singleton, register with LocalBackend 2022-04-15 13:45:39 -07:00
tailscaled_deps_test_freebsd.go ipn/store: add common package for instantiating ipn.StateStores 2022-02-28 13:23:33 -08:00
tailscaled_deps_test_linux.go ssh/tailssh: make the SSH server a singleton, register with LocalBackend 2022-04-15 13:45:39 -07:00
tailscaled_deps_test_openbsd.go ipn/store: add common package for instantiating ipn.StateStores 2022-02-28 13:23:33 -08:00
tailscaled_deps_test_windows.go cmd/tailscaled: change Windows service shutdown and add optional event logging 2022-04-29 15:13:11 -07:00