[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
Thank you for taking the time to report this bug and helping to make Ubuntu better. Since we use systemd in Ubuntu now (since 15.04), this bug no longer applies to the development release so I'm marking it Fix Released. For upstart-using stable releases that are still supported, I don't think it's inappropriate to change the upstart script to not use --nodaemonize in an update automatically recommended to users as that will change behavior and thus clearly has the potential to regress users. In terms of changing to the init.d script, you are welcome to do this by modifying or deleting the upstart and init.d scripts as appropriate as a workaround. They are in /etc and so packaging will attempt to preserve your changes by Debian policy. Given that you have to deleted the upstart job, it seems reasonable to me that you also have to manually edit the init.d script to enable it even if upstart is running. But in any case, we can't fix this in Trusty for all users due to the regression risk, a workaround is available and the bug no longer applies with systemd in the development release for the future. Since there is no longer any work to do on this bug, Fix Released is appropriate. ** Changed in: php5 (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
The workaround let's me use config variables other than the default. Thank you David. Any work on a patch? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
I developed a workaround based upon: http://serverfault.com/questions/114052/logging-a-daemons-output-with- upstart based upon the Last (Feb 12th) solution.. changed bits of /etc/init/php5-fpm.conf script exec bash << EOT exec 1> >(logger -t syslog_tag_for_php) 2>&1 exec /usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf EOT end script ps auxfw output root 5961 0.0 1.6 924120 67144 ?Ss 13:41 0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf) root 5963 0.0 0.0 9720 580 ?S13:41 0:00 \_ bash root 5964 0.0 0.0 4336 632 ?S13:41 0:00 | \_ logger -t syslog_tag_for_php www_pool 5969 0.0 0.3 923688 12308 ?S13:41 0:00 \_ php-fpm: pool www_as_www_pool . . . A slightly better solution would have the "syslog_tag_for_php" as a variable sourced from /etc/default/php5-fpm so the init script is more generic. This results in all php5-fpm master process logging going to syslog and easily filtered into an appropriate logfile by the tag, which is what was possible on 12.04 without this mucking around. The ultimate issue is php5-fpm ignoring some configuration variables when run with the "--nodaemonize" option, and that needs addressing upstream. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
This completely breaks SYSLOG logging of PHP-fpm setups. Not daemoninzing the process results in php-fpm ignoring the error_log option and screws things royally in a multi-server setup where centralized logging is used with syslog... Please revert this bad design. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
The init script bails out if the system is using upstart, so anything that expects sysvinit compatibility won't work. # Don't run if we are running upstart if init_is_upstart; then exit 1 fi -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
I could probably prepare a patch, so --nodaemonize doesn't break logging, since this will break with Debian systemd as well. Whether it will be accepted by Ubuntu into trusty is up to Ubuntu maintainer. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
Nope, the init script is correct. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
That sounds reasonable from my end. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
Looks like we've conflated two problems here -- ignoring options and the init script not working. Would it be inappropriate for me to rename this to focus on the init script issue? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
> This causes several options from the config file to be ignored Well, I see only "error_log" being ignore in this case and not "several options". You should really fill this bug with upstream (in PHP bug tracker), since it's wrong behaviour on FPM side to ignore configuration settings. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
This is quite a serious regression because it badly impacts integration with other systems that depend on sysvinit compatibility. My use case: AWS::CloudFormation::Init (cfn-init) understands sysvinit services, but not upstream services. On Trusty, I can't restart php5-fpm with the init script due to this bug, therefore cfn-init won't restart it in response to file changes. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
Bug is specific to php5-fpm. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1319595] Re: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script.
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: php5 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1319595 Title: upstart script ignores some php-fpm.conf parameters, cannot be bypassed in preference of SystemV init script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1319595/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs