My team is building and maintaining a fairly complex software stack that is being packaged
via rpm. As part of the requirements, the service provided by the .rpm file must be
stopped prior to installation / update of the package.
Is there any supported / recommended way to do this? Currently the team uses the %pre
section to check if the service is running and fail if so, but this seems a bit ugly.