[package] make initscript of fastcgi-php to use /etc/rc.common
[openwrt/svn-archive/archive.git] / lang / php5 / files / php.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2010 OpenWrt.org
3
4 START=50
5
6 export PHP_FCGI_CHILDREN=''
7 PORT=1026
8 BIN=/usr/bin/php-fcgi
9
10 start() {
11 $BIN -b $PORT &
12 }
13
14 stop() {
15 kill `pidof php-fcgi`
16 }