Hi
Look at the an old thread "order of processing for rpm -Uhv (?)" and the IBM reference [1], I have a question about the %pre section.
According to the IBM reference: Here are the actual values passed during an install: * Run %pre of new package (1) * Install new files * Run %post of new package (1)
Here are the values passed during an upgrade:
* Run %pre of new package (2) * Install new files * Run %post of new package (2) * Run %preun of old package (1) * Delete any old files not overwritten by newer ones * Run %postun of old package (1)
Here are the values passed during a delete:
* Run %preun of old package (0) * Delete files * Run %postun of old package (0)
What are the common practices when upgrading a server? I took a look at postfix and httpd spec files, non of them actually do the following:
if [ "$1" = "2" ];
/sbin/service <server> stop
fi
Am I missing something here? Do I actually need to stop the server?
Thanks, Liming [1] http://www-106.ibm.com/developerworks/library/l-rpm3.html
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list