aports/main/php/php-fpm.initd
Matt Smith 6bcb03d73f main/php: fixed remaining dependency issues, added php-ctype, php-enchant, php-xmlreader, gdbm support to php-dba
Changelog (php-5.3.6-r2 -> r3)
- removed cyrus-sasl-dev from makedepends; php-ldap *could* use it, but
  there are issues with it finding sasl.h (let me know if you fix it)
- added gdbm support to php-dba
- added php-ctype, php-enchant, and php-xmlreader
- removed --disable-all from ./configure line (it's best to keep
  defaults enabled)
- php extensions now depend on the php package
- fixed remaining inter-extension dependency issues
2011-04-07 04:36:05 -05:00

23 lines
376 B
Plaintext

#!/sbin/runscript
PHP_FPM_CONF="/etc/php/php-fpm.conf"
opts="depend start stop reload"
depend() {
need net
use apache2 lighttpd nginx
}
start() {
ebegin "Starting PHP FastCGI server"
start-stop-daemon --start --exec /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}"
eend $?
}
stop() {
ebegin "Stopping PHP FastCGI server"
start-stop-daemon --stop --name php-fpm
eend $?
}