mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
Copy php5 from old repository and update
Signed-off-by: W. Michael Petullo <mike@flyn.org>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2010-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
SERVICE_DAEMONIZE=1
|
||||
SERVICE_WRITE_PID=1
|
||||
|
||||
start_instance() {
|
||||
local section="$1"
|
||||
local enabled
|
||||
local port
|
||||
|
||||
config_get_bool enabled "$section" 'enabled' 0
|
||||
config_get port "$section" 'port' 1026
|
||||
|
||||
[ $enabled -gt 0 ] || return 1
|
||||
|
||||
PHP_FCGI_CHILDREN='' \
|
||||
service_start /usr/bin/php-fcgi -b $port
|
||||
}
|
||||
|
||||
start() {
|
||||
config_load 'php5-fastcgi'
|
||||
config_foreach start_instance 'php5-fastcgi'
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/bin/php-fcgi
|
||||
}
|
||||
Reference in New Issue
Block a user