← Back to team overview

ius-coredev team mailing list archive

[Bug 1098319] Re: php-fpm should be reloaded on upgrade

 

Brandon,

The %postun section is also run run when upgrading, it will be run by
the older version of the RPM when it is removed which is what restarts
the service.
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Scriptlet_Ordering
talks about all the sections and what order they're run in when an RPM
is upgraded from the old RPM to the new RPM. To further complicate
things, there's a variable named $1 which is used to determine if the
RPM is being installed, upgraded, or uninstalled. When you see the
conditional testing if $1 is greater than or equal to 1, that is how the
RPM knows it is being upgraded.

I'm not sure why mysql55 didn't restart for you. On el6, I installed
5.5.28-2 from the ius-archive repo, upgraded to 5.5.29-1, and mysql was
restarted for me. Make sure you're actually doing an upgrade of a
package (ie the RPM you're upgrading has a higher version number of one
already installed), not running rpm -Uvh of an RPM already installed (ie
don't run rpm -Uvh mysql-5.5.29-1 if you already have mysql-5-5.29-1
installed) since I don't think that will work. Also, check your yum.conf
and see if you've set tsflags="noscripts" since that will disable to
condrestart/reload on upgrade (as well as other things).

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1098319

Title:
  php-fpm should be reloaded on upgrade

Status in IUS Community Project:
  New

Bug description:
  If you're using php-fpm, you need to reload php-fpm when php is
  updated, otherwise all the members of the php-fpm pool will continue
  to run on the older version of PHP. This can be a quite old version
  depending on when the last time you did a php-fpm reload.

  You can check this by upgrading a server and checking the phpinfo of a
  site, it will still show the old version. If you do a 'lsofp -p $PID |
  grep deleted' on the php-fpm process, you'll see it is running off the
  older deleted php-fpm binary. When you do a reload of php-fpm, it will
  fix it.

  Fedora now does a reload of php-fpm on upgrade:
  http://pkgs.fedoraproject.org/cgit/php.git/plain/php.spec

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1098319/+subscriptions


References