diff --git a/lang/php5/Makefile b/lang/php5/Makefile index fd84461a3..ba3d992d3 100644 --- a/lang/php5/Makefile +++ b/lang/php5/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=php PKG_VERSION:=5.3.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.php.net/distributions/ diff --git a/lang/php5/files/php.init b/lang/php5/files/php.init index 0cb850937..2b8e4d96a 100644 --- a/lang/php5/files/php.init +++ b/lang/php5/files/php.init @@ -1,19 +1,16 @@ -#!/bin/sh +#!/bin/sh /etc/rc.common +# Copyright (C) 2010 OpenWrt.org + +START=50 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 +start() { + $BIN -b $PORT & +} -exit $? +stop() { + kill `pidof php-fcgi` +}