aboutsummaryrefslogtreecommitdiffstats
path: root/package/php4/files/php.init
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-07-04 17:03:18 +0000
committerNicolas Thill <nico@openwrt.org>2005-07-04 17:03:18 +0000
commit122220eb0d327f8af95a13123a546f06c3b4cd51 (patch)
tree2e33a54dd8a3cdc4d35e3bed64c55ce5ee716d72 /package/php4/files/php.init
parentc376c6b4fa116f8329d7e0a0887750f724eec329 (diff)
downloadupstream-122220eb0d327f8af95a13123a546f06c3b4cd51.tar.gz
upstream-122220eb0d327f8af95a13123a546f06c3b4cd51.tar.bz2
upstream-122220eb0d327f8af95a13123a546f06c3b4cd51.zip
Add php4 package (Thanks aorlinsk and enzo for the help)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1334 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/php4/files/php.init')
-rw-r--r--package/php4/files/php.init19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/php4/files/php.init b/package/php4/files/php.init
new file mode 100644
index 0000000000..b29387bd74
--- /dev/null
+++ b/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 $?