init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enable|disable) manages symlinks
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5128 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,19 +1,11 @@
|
||||
#!/bin/sh
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
export PHP_FCGI_CHILDREN=''
|
||||
PORT=1026
|
||||
BIN=/usr/sbin/php
|
||||
start() {
|
||||
$BIN -b $PORT &
|
||||
}
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
$BIN -b $PORT &
|
||||
;;
|
||||
stop)
|
||||
kill `pidof php`
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 (start|stop)"
|
||||
exit 1
|
||||
esac
|
||||
stop() {
|
||||
killall php
|
||||
}
|
||||
|
||||
exit $?
|
||||
|
Reference in New Issue
Block a user