Does CentoOS / Yum update services after updating with yum?

A fairly simple question. When I start the yum update in the CentOS window, do I need to manually restart mysqld, httpd, etc., if they have been updated, or do they automatically restart?

Does anyone know where to find a source to support this?

+4
source share
1 answer

It depends on what% post scripts the .spec file is for each package.

As a rule, they do not always do that, as I recall.

httpd at least does; see http://pkgs.fedoraproject.org/cgit/httpd.git/tree/httpd.spec?id=ea6aac8abd84867119fd84a057daceb75e160bc1 and look at the% posttrans script.

It looks like this was added in Fedora 10: http://pkgs.fedoraproject.org/cgit/httpd.git/tree/httpd.spec?h=f10

due to this error: https://bugzilla.redhat.com/show_bug.cgi?id=491567

+2
source

Source: https://habr.com/ru/post/1447986/


All Articles