Initial status for developed files on dagda

This commit is contained in:
mailcat
2026-07-20 20:49:36 +02:00
commit 337378a362
102 changed files with 37778 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -eu
WEB_PID_FILE="/share/homes/mailcat/mailcat/run/mailcat_web.pid"
WEB_HOST="0.0.0.0"
WEB_PORT="4321"
LOG_DIR="/share/homes/mailcat/mailcat/log"
if [ -f "$WEB_PID_FILE" ]; then
pid=""
IFS= read -r pid < "$WEB_PID_FILE" || true
if [ -n "$pid" ] && kill -0 "$pid" 2>/dev/null; then
echo "mailcat web running: $pid"
echo "url: http://$WEB_HOST:$WEB_PORT/"
exit 0
fi
echo "mailcat web not running: stale pid file ($pid)"
exit 1
fi
echo "mailcat web not running"
echo "logs: $LOG_DIR/web.out"
exit 1