[Bug 2641] Add systemd notify code to to track running server

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sat Dec 31 23:10:38 AEDT 2016


https://bugzilla.mindrot.org/show_bug.cgi?id=2641

--- Comment #2 from Jakub Jelen <jjelen at redhat.com> ---
Sorry for a quite late answer.

I got bitten by this while trying to rebase to the OpenSSH 7.4. Your
patch got into this release in 7fc4766a, but was partially reverted in
f2398eb7.

But to my understanding, the daemonized() function returns 1 even for
the first call running from systemd service file and therefore prevents
call to daemon() and therefore systemd does not keep track of the
service again.

sshd[12655]: debug3: already daemonized
systemd[1]: Starting OpenSSH server daemon...

Reverting the chunk with the condition

        if (!(debug_flag || inetd_flag || no_daemon_flag ||
already_daemon)) {

makes it working again.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list