Problem with php7-fpm init.d script
Sorry, but it seems that php7-fpm init.d script (/etc/init.d/php-fpm7)
may have a problem: service starting requires an interactive password
entry if root password is set.
I have Alpine Linux 3.5 (problem also exists in 3.6 container), and can
reproduce it simply by installing php-fpm7 package and then executing
# service php-fpm7 start
with default configs and init.d script. It will stuck on checking configuration file. If blindly enter something end press Enter key, message
su: Authentication failure
appears.
I can temporarily get rid of this problem by replacing (in /etc/init.d/php-fpm7) line 78
out="$(su -s /bin/sh -c "$command --test --fpm-config $fpm_config" $user 2>&1)" || {
with
out="$($command --test --fpm-config $fpm_config)" || {
But I’m not sure what exactly is causing the problem.
Thanks.
(from redmine: issue id 7271, created on 2017-05-05, closed on 2018-08-22)