aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/wa-daemon@.service
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2026-09-26 19:26:33 -0300
committerElvis Claros Castro <elvis@claros.ar>2026-09-26 19:26:33 -0300
commitd80640d01eeb84907e36ff4af33add9081eda17c (patch)
tree27698b34e06e28d111c2196700015d9c82f78274 /systemd/wa-daemon@.service
downloadwa-cli-main.tar.gz
wa-cli-main.zip
wa-cli: WhatsApp from the terminal, with a neomutt Maildir bridgeHEADmain
Diffstat (limited to 'systemd/wa-daemon@.service')
-rw-r--r--systemd/wa-daemon@.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/wa-daemon@.service b/systemd/wa-daemon@.service
new file mode 100644
index 0000000..4568ad0
--- /dev/null
+++ b/systemd/wa-daemon@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=wa-cli: WhatsApp Web session (account %i)
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+ExecStart=%h/.local/bin/wa daemon start --foreground --account %i
+# If WhatsApp Web disconnects or Chrome dies, the daemon exits with 1 and is restarted.
+Restart=on-failure
+RestartSec=15
+TimeoutStopSec=30
+
+[Install]
+WantedBy=default.target