adding support for php-fpm for php from http://gitorious.org/okelly_overlay

This commit is contained in:
Micha Glave
2009-09-28 13:00:49 +02:00
parent 138e5e6f06
commit d61ce4af43
5 changed files with 108 additions and 3 deletions

View 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">

View 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 $?
}