Skip to content

Need help with a custom gpg-agent script #194

Answered by davmac314
62832 asked this question in Q&A
Discussion options

You must be logged in to vote

One problem that stands out to me is that you are using $GPG_SOCKET_DIR in the service description file but it looks like GPG_SOCKET_DIR isn't set until the service runs (via dinitctl setenv GPG_SOCKET_DIR in the script). If the service description for a service uses a variable then the variable must be set at the time the service description is loaded.

I would have expected that this would cause opening the socket to fail and so the service would fail to start. Have you checked the service status, and the dinit log?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@62832
Comment options

Answer selected by 62832
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants