scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit 663b9c4ea04195f942b77ec0a267c676a4e049d5
parent aec1c09d4736a19a80a768f9ea017416fae05ca4
Author: clamiax <smoppy@gmail.com>
Date:   Sun,  3 Nov 2013 15:25:54 +0100

Add spawncgi

Diffstat:
Aspawncgi | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/spawncgi b/spawncgi @@ -0,0 +1,5 @@ +export PHP_FCGI_MAX_REQUESTS=1000 +export PHP_FCGI_CHILDREN=5 + +[ $(pgrep -fl php5 |wc -l) -ne 0 ] && pkill -f php5-cgi +su -c "/usr/bin/php5-cgi -b 127.0.0.1:9000" www-data &