mirror of
https://github.com/chatmail/relay.git
synced 2026-05-13 09:24:43 +00:00
17 lines
421 B
Bash
17 lines
421 B
Bash
#!/bin/bash
|
|
# returns 0 when chatmail-init succeeded and all expected services are running.
|
|
|
|
set -e
|
|
|
|
test -f /run/chatmail-init.done
|
|
|
|
# Core services
|
|
services="chatmail-metadata doveauth dovecot filtermail filtermail-incoming nginx postfix unbound"
|
|
|
|
# Optional services
|
|
for svc in iroh-relay turnserver; do
|
|
systemctl is-enabled "$svc" 2>/dev/null && services="$services $svc"
|
|
done
|
|
|
|
exec systemctl is-active $services
|