From 8d6baf0057572fba7f20c4824918fcbebc86edc5 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 4 Jul 2005 17:03:18 +0000 Subject: Add php4 package (Thanks aorlinsk and enzo for the help) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1334 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/php4/files/php.init | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 openwrt/package/php4/files/php.init (limited to 'openwrt/package/php4/files/php.init') diff --git a/openwrt/package/php4/files/php.init b/openwrt/package/php4/files/php.init new file mode 100644 index 000000000..b29387bd7 --- /dev/null +++ b/openwrt/package/php4/files/php.init @@ -0,0 +1,19 @@ +#!/bin/sh + +export PHP_FCGI_CHILDREN='' +PORT=1026 +BIN=/usr/sbin/php + +case $1 in + start) + $BIN -b $PORT & + ;; + stop) + kill `pidof php` + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? -- cgit v1.2.3