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