Green Amy Man
this post was submitted on 05 Mar 2026
27 points (100.0% liked)
Chapotraphouse
14296 readers
588 users here now
Banned? DM Wmill to appeal.
No anti-nautilism posts. See: Eco-fascism Primer
Slop posts go in c/slop. Don't post low-hanging fruit here.
founded 5 years ago
MODERATORS
Link to the 🐼 Hexbear Matrix Chat https://matrix.to/#/#Hexbear:matrix.org where we formed a Goverment-In-Exile 
#!/usr/bin/env bash
CMD="/usr/bin/php hexbear.php"
CHECK_INTERVAL=5
start_process() {
echo "Starting process: $CMD"
$CMD &
PID=$!
echo "Process started with PID $PID"
}
start_process
while true; do
if ! kill -0 "$PID" 2>/dev/null; then
echo "Process crashed or exited. Restarting..."
start_process
fi
sleep "$CHECK_INTERVAL"
done
FIXED IT