adding support for php-fpm for php from http://gitorious.org/okelly_overlay
This commit is contained in:
16
dev-lang/php/files/php-5.2.10-fpm-0.5.13.diff-ext.patch
Normal file
16
dev-lang/php/files/php-5.2.10-fpm-0.5.13.diff-ext.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff -ur php-5.2.10-orig/sapi/cgi/fpm/conf/php-fpm.conf.in php-5.2.10/sapi/cgi/fpm/conf/php-fpm.conf.in
|
||||
--- php-5.2.10-orig/sapi/cgi/fpm/conf/php-fpm.conf.in 2009-07-22 13:31:05.000000000 +0800
|
||||
+++ php-5.2.10/sapi/cgi/fpm/conf/php-fpm.conf.in 2009-07-22 13:36:28.000000000 +0800
|
||||
@@ -60,10 +60,10 @@
|
||||
</value>
|
||||
|
||||
Unix user of processes
|
||||
- <!-- <value name="user">nobody</value> -->
|
||||
+ <value name="user">nobody</value>
|
||||
|
||||
Unix group of processes
|
||||
- <!-- <value name="group">@php_fpm_group@</value> -->
|
||||
+ <value name="group">@php_fpm_group@</value>
|
||||
|
||||
Process manager settings
|
||||
<value name="pm">
|
26
dev-lang/php/files/php-fpm.init
Normal file
26
dev-lang/php/files/php-fpm.init
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
opts="depend start stop reload"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting PHP FastCGI server"
|
||||
start-stop-daemon --start --pidfile=/var/run/php-fpm.pid \
|
||||
--exec /usr/bin/php-cgi -- --fpm
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping PHP FastCGI server"
|
||||
start-stop-daemon --stop --pidfile=/var/run/php-fpm.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Restart gracefully PHP FastCGI server"
|
||||
kill -SIGUSR2 `cat /var/run/php-fpm.pid` &>/dev/null
|
||||
eend $?
|
||||
}
|
Reference in New Issue
Block a user