Description of problem: Reload of puppetagent.service do not work as intended during %preun stage of package updating. Version-Release number of selected component (if applicable): puppet-3.6.2 Patch proposition : $ diff puppet.spec.orig puppet.spec 328c328 < /bin/systemctl /bin/systemctl --no-reload disable puppetagent.service > /dev/null 2>&1 --- > /bin/systemctl --no-reload disable puppetagent.service
$ rpm -q puppet puppet-3.6.2-2.fc21.noarch
Shouldn't the package be using the standard scriptlets from https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
Created attachment 996425 [details] spec file with systemd macros Here is a patch with a bit of refactoring on puppet.spec : - add a BuildRequires on systemd (for _unitdir macro) - use %systemd_{post,preun,postun*} macros - replace ps aux | grep $PID | grep -v grep idiom for a more robust ps -p $PID Note that the pending_upgrade case could not be factored out. I'm also not sure why the packager felt the need to put additional systemctl daemon-reloads.
@Jean-Baptiste: thanks for attaching the patch, I will apply it as a provenpackager on EPEL7 & F21+ A friendly tip when you submit a patch: fedpkg clone -a <package> (do your changes, you may even create a separate branch for your changes) git commit -m "my changes" # you may even bump the release and add a changelog entry git format-patch HEAD~<number of patches> It doesn't take much of your time and it will be easier for maintainers to apply your patches.
puppet-3.7.1-2.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/puppet-3.7.1-2.fc21
puppet-3.7.1-3.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/puppet-3.7.1-3.fc22
Package puppet-3.7.1-2.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing puppet-3.7.1-2.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-2899/puppet-3.7.1-2.fc21 then log in and leave karma (feedback).
puppet-3.7.1-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
puppet-3.7.1-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.