summaryrefslogtreecommitdiffstats
path: root/package/php5/files/php.init
blob: b29387bd745f4465d4bf2fe86c0a91e9e28a8b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

export PHP_FCGI_CHILDREN=''
PORT=1026
BIN=/usr/sbin/php

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

exit $?