Follow #29629 (cherry picked from commit d08f4360c96e130e0454b76ecef9405f2bd312a1)
Although the systemd notify support was added, it seems that there are some problems (#28553, for the "non-installed" instance)
Make "windows" and "unix" share as much code as possible. No logic change.