Skip to content

Commit 40868e2

Browse files
committed
Write fatal error to event log if running as service
Signed-off-by: Stefan Scherer <[email protected]>
1 parent ad9ceff commit 40868e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/dockerd/daemon_windows.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func notifySystem() {
4141
// notifyShutdown is called after the daemon shuts down but before the process exits.
4242
func notifyShutdown(err error) {
4343
if service != nil {
44+
if err != nil {
45+
logrus.Fatal(err)
46+
}
4447
service.stopped(err)
4548
}
4649
}

0 commit comments

Comments
 (0)