packages/lang/php5/files/php.init
florian cfc65b7052 [package] make initscript of fastcgi-php to use /etc/rc.common
currently the init.d script of fastcgi-php do not use the standard
rc.common methods. The attached patch fixes that.

Signed-off-by: Alexander Sulfrian <alexander@sulfrian.net>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@23618 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-24 13:20:30 +00:00

17 lines
194 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2010 OpenWrt.org
START=50
export PHP_FCGI_CHILDREN=''
PORT=1026
BIN=/usr/bin/php-fcgi
start() {
$BIN -b $PORT &
}
stop() {
kill `pidof php-fcgi`
}