fix: binary: wrong usage of supervisord listener

Fixes: 3c142964d9
This commit is contained in:
2026-03-24 16:12:04 +08:00
parent 5061d5fe4b
commit 398518d3e6
2 changed files with 10 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
while true; do
echo "Cleaning up dead workers..."
rm -f /srv/obs/workers/down/*
sleep 3600
done

View File

@@ -29,8 +29,6 @@ redirect_stderr=1
command=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start
redirect_stderr=1
[eventlistener:cleanup_worker]
command=rm -f /srv/obs/workers/down/*
events=TICK_3600
startsecs=0
[program:cleanup_worker]
command=/obs/cleanup_worker.sh
redirect_stderr=1