Join the community today
Become a Member

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

    48,474
    11,107
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,295
    Local Time:
    5:58 PM
    Nginx 1.21.x
    MariaDB 10.x
    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

    38
    9
    8
    Apr 23, 2021
    Ratings:
    +21
    Local Time:
    2:58 AM
    1.19.10
    MariadDB 10.4.18
    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

    48,474
    11,107
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,295
    Local Time:
    5:58 PM
    Nginx 1.21.x
    MariaDB 10.x
    Yup that is correct with reverted Type=notify and NotifyAccess=all commented out
     
  4. happyhacking

    happyhacking Member

    38
    9
    8
    Apr 23, 2021
    Ratings:
    +21
    Local Time:
    2:58 AM
    1.19.10
    MariadDB 10.4.18
    Thank you for clarification, i’ve been confused when reading changelog.