-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: Add systemd aware 'daemon is running' check
Early in the daemon startup, we attempt to send 'version' HTTP request to the daemon to check if it's running already. When using systemd socket activation, this causes a 'chicken and egg' issue. The daemon socket already exists, so the version check code can attempt to connect/send data to it. However, the daemon hasn't taken ownership of that socket yet, so it won't respond to the HTTP 'version' request. This causes the version check to hang. This commit enhances this check, if it detects socket activation is being used, then it reports that the daemon is not running yet. If socket activation is not being used, the regular 'daemon is running' check is used.
- Loading branch information
1 parent
47724ad
commit 4b94bba
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters