[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
This commit is contained in:
parent
8fcbe6cb55
commit
cfc65b7052
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=php
|
PKG_NAME:=php
|
||||||
PKG_VERSION:=5.3.1
|
PKG_VERSION:=5.3.1
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://www.php.net/distributions/
|
PKG_SOURCE_URL:=http://www.php.net/distributions/
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh /etc/rc.common
|
||||||
|
# Copyright (C) 2010 OpenWrt.org
|
||||||
|
|
||||||
|
START=50
|
||||||
|
|
||||||
export PHP_FCGI_CHILDREN=''
|
export PHP_FCGI_CHILDREN=''
|
||||||
PORT=1026
|
PORT=1026
|
||||||
BIN=/usr/bin/php-fcgi
|
BIN=/usr/bin/php-fcgi
|
||||||
|
|
||||||
case $1 in
|
start() {
|
||||||
start)
|
$BIN -b $PORT &
|
||||||
$BIN -b $PORT &
|
}
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
kill `pidof php-fcgi`
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "usage: $0 (start|stop)"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit $?
|
stop() {
|
||||||
|
kill `pidof php-fcgi`
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user