Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple systemd timer to refresh GnuPG public keys
[Unit]
Description=Refreshes GnuPG keys for %I
Requires=network.target network-online.target
After=network.target network-online.target
[Service]
Type=oneshot
User=%i
ExecStart=/usr/bin/gpg --refresh-keys
StandardOutput=journal
StandardError=journal
[Unit]
Description=Refreshes GnuPG keys for %I
Requires=network.target network-online.target
After=network.target network-online.target
[Timer]
OnCalendar=*-*-* 20:00:00
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.