Giter VIP home page Giter VIP logo

Comments (3)

camlafit avatar camlafit commented on August 30, 2024

Hello

should be solved with https://github.com/AlternC/alternc-php-fpm/blob/issue-18/src/usr/lib/alternc/php7-fpm#L76

Is it enough ?

from alternc-php-fpm.

Mazamazine avatar Mazamazine commented on August 30, 2024

It doesn't work because the unit exists even if the service is dead. The script checks for /etc/php/$version/fpm/pool.d so it will try anyway for any installed version:

root@staging-alternc:/usr/lib/alternc# service php5.6-fpm status | grep 'Active:'
   Active: inactive (dead) since Tue 2023-04-25 15:09:58 EDT; 2min 39s ago
root@staging-alternc:/usr/lib/alternc# ls /etc/init.d/php*
/etc/init.d/php5.6-fpm  /etc/init.d/php7.1-fpm  /etc/init.d/php7.3-fpm  /etc/init.d/php8.0-fpm  /etc/init.d/php8.2-fpm
/etc/init.d/php7.0-fpm  /etc/init.d/php7.2-fpm  /etc/init.d/php7.4-fpm  /etc/init.d/php8.1-fpm
root@staging-alternc:/usr/lib/alternc# ./php7-fpm
Alternc-nss: updating files in /var/lib/extrausers/
2023-04-25 15:10:41 Log of php7-fpm
Creating php 5.6 fpm pool for user test
Reloading php5.6-fpm configuration (via systemctl): php5.6-fpm.servicephp5.6-fpm.service is not active, cannot reload.
 failed!

So here, in a case where php5.6-fpm was not running, adding a sub-domain on 5.6 fails (silently from the user side, since it's from the cron). And the page will show a 503.

from alternc-php-fpm.

camlafit avatar camlafit commented on August 30, 2024

Hello

Ok we must improve this behavior and do a check between sysV and systemd. I'll do a next try to manage this two use case.
If service is disabled script should not start it . We initial suggestion this choice will be ignored , and start forced.

from alternc-php-fpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.