Skip to content

Commit 5028d53

Browse files
Merge pull request #636 from Lifecycle-Innovations-Limited/fix/daemon-gog-keyring-env
fix(daemon): give claude-ops-daemon the gog file-keyring env so memory-extractor can read email
2 parents 4d5b55e + 07d139d commit 5028d53

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

claude-ops/scripts/systemd/claude-ops-daemon.service

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin
1212
# CLAUDE_PLUGIN_ROOT is read by ops-daemon.sh and the services it spawns.
1313
# Override at install time if your marketplace dir lives elsewhere.
1414
Environment=CLAUDE_PLUGIN_ROOT=%h/.claude/plugins/marketplaces/ops-marketplace/claude-ops
15+
# memory-extractor (and any other gog-backed service the daemon spawns) calls
16+
# `gog gmail search` to collect email. gog stores its OAuth tokens in a file
17+
# keyring encrypted with GOG_KEYRING_PASSWORD; without GOG_KEYRING_PASSWORD +
18+
# GOG_KEYRING_BACKEND=file in the unit env, gog cannot decrypt them and returns
19+
# no data, so extraction silently logs "gog returned no data" and skips email.
20+
# These creds live in the same mcp-secrets.env used by the pocket/whatsapp
21+
# helper units. Optional (-) so installs without the file still boot; gog
22+
# resolves the default account from ~/.config/gogcli/config.json, so no
23+
# GOG_ACCOUNT is required here.
24+
EnvironmentFile=-%h/.config/systemd/env/mcp-secrets.env
1525
ExecStart=/bin/bash %h/.claude/plugins/marketplaces/ops-marketplace/claude-ops/scripts/ops-daemon.sh
1626
Restart=on-failure
1727
RestartSec=10

0 commit comments

Comments
 (0)