stop_server 111 B

1234567
  1. #!/bin/bash
  2. if [ ! -f .php_pid ]; then
  3. echo Server not started.
  4. else
  5. kill -9 $(cat .php_pid)
  6. rm .php_pid
  7. fi