mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Write fatal error to event log if running as service
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
This commit is contained in:
parent
ad9ceff3b3
commit
40868e263d
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ func notifySystem() {
|
|||
// notifyShutdown is called after the daemon shuts down but before the process exits.
|
||||
func notifyShutdown(err error) {
|
||||
if service != nil {
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
service.stopped(err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue