generated from sigstore/sigstore-project-template
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for systemd socket activation (#223)
* Add support for systemd socket activation Signed-off-by: Iavael <905853+iavael@users.noreply.github.com> * Adjust README for socket activation feature Signed-off-by: Iavael <905853+iavael@users.noreply.github.com> * Fix newline in socket unit Signed-off-by: Iavael <905853+iavael@users.noreply.github.com> * Adjust socket path to prerelease changes in main branch Signed-off-by: Iavael <905853+iavael@users.noreply.github.com> * Fixes after code review Signed-off-by: Iavael <905853+iavael@users.noreply.github.com> * Validate that there is non-negativa number of stream sockets passed to cache daemon Signed-off-by: Iavael <905853+iavael@users.noreply.github.com> Signed-off-by: Iavael <905853+iavael@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
106 additions
and
19 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=GitSign credential cache | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=%h/.local/bin/gitsign-credential-cache | ||
|
||
[Install] | ||
WantedBy=default.target |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=GitSign credential cache socket | ||
|
||
[Socket] | ||
ListenStream=%C/sigstore/gitsign/cache.sock | ||
DirectoryMode=0700 | ||
|
||
[Install] | ||
WantedBy=default.target |
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