ClusterLabs / anvil

The Anvil! Intelligent Availability™ Platform, mark 3
5 stars 6 forks source link

Make the spec file leave the daemons off if they were off at the time the RPM is updated #676

Closed digimer closed 3 months ago

digimer commented 3 months ago

There's a rpm macros to handles for this.

digimer commented 3 months ago

You should be able to find examples in other spec files to show how this is handled, like potentially apache.

ylei-tsubame commented 3 months ago

Should follow the systemd section of Fedora Packaging Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd

Notes from https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#scriptlets-macros_scriptlets-new: