#!/bin/bash # start nginx service nginx start # start the Playwright service node playwright_service.js > /dev/stdout 2>&1 & echo $! > playwright.pid # start the processes python tools.py > /dev/stdout 2>&1 & echo $! > tools.pid python app.py > /dev/stdout 2>&1 # blocking # when unblocked, kill other processes and clean up pkill -F tools.pid pkill -F playwright.pid rm tools.pid playwright.pid