mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdmain: print out error and suggestion for fixing notify issue
This commit is contained in:
@@ -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?")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user