Created
          January 24, 2019 07:00 
        
      - 
      
 - 
        
Save Frederick888/1e03c78b599d0c51959dcf0a671d735b to your computer and use it in GitHub Desktop.  
    Simple systemd timer to refresh GnuPG public keys 
  
        
  
    
      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
    
  
  
    
  | [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 | 
  
    
      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
    
  
  
    
  | [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