Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch part 2 update php-fpm systemd service file in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 24, 2021.

  1. eva2000

    eva2000 Administrator Staff Member

    54,906
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:49 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    part 2 update php-fpm systemd service file in 123.09beta01

    - change from Type=notify to Type=forking and disable NotifyAccess=all by commenting it out (which will default to NotifyAccess=main) when commented out in /usr/lib/systemd/system/php-fpm.service
    - exiting Centmin Mod users can run cmupdate and then run the tool command below:


    /usr/local/src/centminmod/tools/php-systemd.sh fpm-systemd

    Continue reading...

    123.09beta01 branch
     
  2. happyhacking

    happyhacking Member

    111
    18
    18
    Apr 23, 2021
    Ratings:
    +61
    Local Time:
    7:49 PM
    1.22.0
    MariadDB 10.4.25
    As existing user i did cmupdate then:
    /usr/local/src/centminmod/tools/php-systemd.sh fpm-systemd

    but i ended with:

    Code:
    cat /usr/lib/systemd/system/php-fpm.service
    [Unit]
    Description=PHP FastCGI Process Manager
    After=syslog.target network.target
    
    [Service]
    Type=forking
    PIDFile=/var/run/php-fpm/php-fpm.pid
    ExecStart=/usr/local/sbin/php-fpm --daemonize --fpm-config /usr/local/etc/php-fpm.conf --pid /var/run/php-fpm/php-fpm.pid
    ExecReload=/bin/kill -USR2 $MAINPID
    ExecStop=/bin/kill -s QUIT $MAINPID
    #Restart=on-failure
    PrivateTmp=true
    #RestartSec=5
    #TimeoutSec=2
    #WatchdogSec=30
    #NotifyAccess=all
    
    
    [Install]
    WantedBy=multi-user.target
    
    From original file:
    Code:
    cat /usr/lib/systemd/system/php-fpm.service
    [Unit]
    Description=PHP FastCGI Process Manager
    After=syslog.target network.target
    
    [Service]
    Type=forking
    #Type=notify
    PIDFile=/var/run/php-fpm/php-fpm.pid
    ExecStart=/usr/local/sbin/php-fpm --daemonize --fpm-config /usr/local/etc/php-fpm.conf --pid /var/run/php-fpm/php-fpm.pid
    ExecReload=/bin/kill -USR2 $MAINPID
    ExecStop=/bin/kill -s QUIT $MAINPID
    #Restart=on-failure
    PrivateTmp=true
    #RestartSec=5
    #TimeoutSec=2
    #WatchdogSec=30
    NotifyAccess=all
    
    
    [Install]
    WantedBy=multi-user.target
    
    Is this correct ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,906
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:49 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup that is correct with reverted Type=notify and NotifyAccess=all commented out
     
  4. happyhacking

    happyhacking Member

    111
    18
    18
    Apr 23, 2021
    Ratings:
    +61
    Local Time:
    7:49 PM
    1.22.0
    MariadDB 10.4.25
    Thank you for clarification, i’ve been confused when reading changelog.