Merge pull request #3633 from xiang90/systemd_readiness

etcdmain: print out error and suggestion for fixing notify issue
This commit is contained in:
Xiang Li 2015-10-02 13:56:16 -07:00
commit 69ca0b8475

View File

@ -181,7 +181,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?")
}
}
}