I tried replacing s6-notifyoncheck with s6-notify-socket-from-fd, but my service never becomes ready. systemd logs: systemd[1]: Extra notification messages sent with BARRIER=1, ignoring everything. Is it perhaps not valid to send BARRIER=1 in the same datagram as the other messages?
Congratulations, you made me download the systemd git in order to grep the message 😄 And yes, it appears you're right: https://github.com/systemd/systemd/blob/main/src/core/manager.c#L2796 which is not intuitive at all from the client part that I modelled s6-notify-socket-from-fd after: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-daemon/sd-daemon.c#L676 Ah well, it wouldn't be systemd if it was that easy. Thanks for the report, will fix. -- Laurent
