diff options
author | Matt Smith <mcs@darkregion.net> | 2011-04-07 04:36:05 -0500 |
---|---|---|
committer | Matt Smith <mcs@darkregion.net> | 2011-04-07 04:36:05 -0500 |
commit | 6bcb03d73fe632a69103fcf5a5ecf19e856fdd40 (patch) | |
tree | 44a02f53291ee4e878653815a8d21ff2e10e179b /main/php/php-fpm.initd | |
parent | a78c5e790c0379a90ab5d0f60fa90792f01adbdd (diff) | |
download | aports-6bcb03d73fe632a69103fcf5a5ecf19e856fdd40.tar.bz2 aports-6bcb03d73fe632a69103fcf5a5ecf19e856fdd40.tar.xz |
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
Diffstat (limited to 'main/php/php-fpm.initd')
-rw-r--r-- | main/php/php-fpm.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/php/php-fpm.initd b/main/php/php-fpm.initd new file mode 100644 index 0000000000..6b8337e8b8 --- /dev/null +++ b/main/php/php-fpm.initd @@ -0,0 +1,22 @@ +#!/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 $? +} |