Make services that use gpg want gpg-agent

This commit is contained in:
TEC 2023-11-09 02:02:48 +08:00
parent 7032105ae2
commit 10fac03cb9
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 3 additions and 0 deletions

View File

@ -3040,6 +3040,7 @@ used to ensure that =.zshenv= is loaded.
[Unit]
Description=Emacs server daemon
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
Wants=gpg-agent.service
[Service]
Type=forking
@ -6803,6 +6804,7 @@ We'll use a template service file so we can enable a unit per-account.
Description=IMAP notifier using IDLE, golang version.
ConditionPathExists=%h/.config/imapnotify/%I/notify.conf
After=network.target
Wants=gpg-agent.service
[Service]
ExecStart=%h/.local/bin/goimapnotify -conf %h/.config/imapnotify/%I/notify.conf
@ -6842,6 +6844,7 @@ WantedBy=default.target
Description=mbsync service, sync all mail
Documentation=man:mbsync(1)
ConditionPathExists=%h/.mbsyncrc
Wants=gpg-agent.service
[Service]
Type=oneshot