mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
signal: clarify the log message about systemd
The log message was confusing because it was emitted even when running within systemd if the service type was **not** `notify`. This clarifies the message by mentioning the edge case. Being able to distinguish the two cases would be nicer but there doesn't seem to be a reasonably simple, obvious, reliable way to do it. Complicated solutions are most likely not worth it for a simple log message.
This commit is contained in:
@ -42,7 +42,8 @@ func systemdNotifyReady() error {
|
||||
if notified {
|
||||
log.Info("Systemd was notified about our readiness")
|
||||
} else {
|
||||
log.Info("We're not running within systemd")
|
||||
log.Info("We're not running within systemd or the service " +
|
||||
"type is not 'notify'")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user