1 2 3 4 5 6 7 8 9
#!/bin/bash -e redis-server & PIDS[0]=$! sudo php artisan serve --host 0.0.0.0 --port 80 & PIDS[1]=$! trap "kill ${PIDS[*]}" SIGINT wait