trezor+GPG: init socket/service
This commit is contained in:
parent
38a7a6a4be
commit
780041411a
2 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=trezor-gpg-agent
|
||||||
|
Requires=trezor-gpg-agent.socket
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Environment="GNUPGHOME=%h/.gnupg/trezor"
|
||||||
|
Environment="PATH=/bin:/usr/bin:/usr/local/bin:%h/.local/bin"
|
||||||
|
ExecStart=%h/.local/bin/trezor-gpg-agent --pin-entry-binary=/usr/bin/pinentry-gnome3 --passphrase-entry-binary=/usr/bin/pinentry-gnome3
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=trezor-gpg-agent socket
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=%t/gnupg/S.gpg-agent
|
||||||
|
FileDescriptorName=std
|
||||||
|
SocketMode=0600
|
||||||
|
DirectoryMode=0700
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
Loading…
Reference in a new issue