Hym.sh 360 B

123456789101112131415
  1. UI_PORT=3321
  2. cleanup() {
  3. echo "Stopping all running processes..."
  4. pkill -P $$
  5. exit 0
  6. }
  7. trap cleanup SIGINT SIGTERM
  8. wasmedge --dir ./crabmail:./crabmail ./crabmail.wasm -h -c /crabmail/crabmail.conf -d /crabmail/result -m /crabmail/mailboxes &
  9. ./sonic/sonic -c ./sonic/config.cfg &
  10. ./UI/server $UI_PORT &
  11. xdg-open http://127.0.0.1:$UI_PORT &
  12. wait