From 7659bbb1b26e578592b7749050f521754324b0a3 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 2 Oct 2015 13:39:41 -0700 Subject: [PATCH] etcdmain: print out error and suggestion for fixing notify issue --- etcdmain/etcd.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etcdmain/etcd.go b/etcdmain/etcd.go index 73fde51e1..b2666af47 100644 --- a/etcdmain/etcd.go +++ b/etcdmain/etcd.go @@ -175,7 +175,10 @@ func Main() { // for less than one second. err := daemon.SdNotify("READY=1") if err != nil { - plog.Errorf("failed to notify systemd for readiness") + plog.Errorf("failed to notify systemd for readiness: %v", err) + if err == daemon.SdNotifyNoSocket { + plog.Errorf("forgot to set Type=notify in systemd service file?") + } } }