%post
systemctl enable sfa-aggregate
systemctl enable sfa-registry
+true
%preun
if [ "$1" = 0 ] ; then
systemctl is-active $service && systemctl stop $service
done
fi
+true
%postun
if [ "$1" -ge "1" ] ; then
systemctl is-active $service && systemctl restart $service
done
fi
+true
%changelog
* Mon Jan 07 2019 Thierry <Parmentelat> - sfa-4.0-2