Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
@@ -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)
}