diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-09-26 19:26:33 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-09-26 19:26:33 -0300 |
| commit | d80640d01eeb84907e36ff4af33add9081eda17c (patch) | |
| tree | 27698b34e06e28d111c2196700015d9c82f78274 /systemd/wa-daemon@.service | |
| download | wa-cli-d80640d01eeb84907e36ff4af33add9081eda17c.tar.gz wa-cli-d80640d01eeb84907e36ff4af33add9081eda17c.zip | |
Diffstat (limited to 'systemd/wa-daemon@.service')
| -rw-r--r-- | systemd/wa-daemon@.service | 15 |
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 |