Created
August 13, 2015 21:15
-
-
Save luislavena/41c7cdbfbe2ea0b46968 to your computer and use it in GitHub Desktop.
Setup GnuPG agent on systemd (Ubuntu)
This file contains hidden or 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
# place unit in /etc/systemd/system/[email protected] | |
# start and enable with `systemctl start|enable gpg-agent@username` | |
[Unit] | |
Description=GnuPG private key agent for %I | |
IgnoreOnIsolate=true | |
[Service] | |
User=%i | |
Type=forking | |
ExecStart=/usr/bin/gpg-agent --daemon --write-env-file "${HOME}/.gpg-agent-info" | |
ExecStop=/usr/bin/pkill gpg-agent | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment