#!/bin/sh

export PHP_FCGI_CHILDREN=''
PORT=1026
BIN=/usr/bin/php-fcgi

case $1 in
 start)
  $BIN -b $PORT &
  ;;
 stop)
  kill `pidof php-fcgi`
  ;;
 *)
  echo "usage: $0 (start|stop)"
  exit 1
esac

exit $?
