Hi, currently the init.d script of fastcgi-php do not use the standard rc.common methods. The attached patch fixes that.
Thanks Alex
From 46112daf9881750d51d61d8c045824efd60eb11a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian <[email protected]> Date: Sat, 11 Sep 2010 01:53:18 +0200 Subject: [PATCH] fastcgi-php: make initscript to use /etc/rc.common --- packages/lang/php5/files/php.init | 23 ++++++++++------------- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git a/packages/lang/php5/files/php.init b/packages/lang/php5/files/php.init index 0cb8509..2b8e4d9 100644 --- a/packages/lang/php5/files/php.init +++ b/packages/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` +} -- 1.7.2.2
signature.asc
Description: PGP signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
