Files
ROMFASTSQL/proxmox/lxc171-claude-agent/maria-whatsapp-bridge/ops/maria-whatsapp.service
Claude Agent dd5553e327 Add Maria WhatsApp+RAG bridge as a service (LXC 171)
Move the /tmp prototype (Baileys bridge + RAG consumer) into git as a
proper sibling project to discord-bridge/: own systemd --user units
(whatsapp bridge, rag consumer, dashboard, periodic Drive sync timer),
a filesystem document store with a stdlib control dashboard (start/
stop/restart, document CRUD, reindex, Google Drive sync via rclone),
and an idempotent ops/install.sh following the same conventions.

Co-Authored-By: Claude Agent <noreply@anthropic.com>
2026-08-31 17:38:51 +00:00

48 lines
1.4 KiB
Desktop File

# Unit systemd de UTILIZATOR pentru puntea WhatsApp (Baileys) a lui Maria.
#
# Se instaleaza in ~/.config/systemd/user/maria-whatsapp.service (vezi install.sh).
#
# systemctl --user daemon-reload
# systemctl --user enable --now maria-whatsapp
# journalctl --user -u maria-whatsapp -f
[Unit]
Description=Punte WhatsApp (Baileys) pentru Maria (LXC 171 claude-agent)
Documentation=file:///workspace/romfastsql/proxmox/lxc171-claude-agent/maria-whatsapp-bridge/README.md
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=5
[Service]
Type=simple
WorkingDirectory=/workspace/romfastsql/proxmox/lxc171-claude-agent/maria-whatsapp-bridge/whatsapp
EnvironmentFile=%h/.maria-bridge/env
Environment=MARIA_BRIDGE_DIR=%h/.maria-bridge
Environment=NODE_ENV=production
# nvm — acelasi PATH ca discord-bridge, pe acelasi container.
Environment=PATH=%h/bin:%h/.nvm/versions/node/v20.19.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStartPre=/bin/mkdir -p %h/.maria-bridge/logs %h/.maria-bridge/whatsapp-auth
ExecStart=%h/.nvm/versions/node/v20.19.6/bin/node index.js
KillMode=control-group
KillSignal=SIGTERM
TimeoutStopSec=15
Restart=on-failure
RestartSec=5
RestartSteps=5
RestartMaxDelaySec=120
MemoryHigh=384M
MemoryMax=768M
StandardOutput=append:%h/.maria-bridge/logs/whatsapp.log
StandardError=append:%h/.maria-bridge/logs/whatsapp.log
SyslogIdentifier=maria-whatsapp
[Install]
WantedBy=default.target