Bug 1716336
Summary: | Unnecessary warnings in scriptlet | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lukas Slebodnik <lslebodn> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dwalsh, jfch, jjelen, lkundrak, lnykryn, mattias.ellert, msekleta, plautrba, ssahani, s, systemd-maint, tmraz, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-03 12:51:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Lukas Slebodnik
2019-06-03 09:10:40 UTC
`systemctl daemon-reload` should be executed but I am not sure whether it is wrong usage if systemd macros or it should be handled in %systemd_postun_with_restart So freel free to reassing component to systemd sh$ rpm -qf /usr/lib/rpm/macros.d/macros.systemd systemd-rpm-macros-242-3.git7a6d834.fc31.noarch This is an update, which does NOT change the units on the disk. If it would, the systemd macros should indeed take care of the daemon-reload step. Can you make sure you did not made any changes to these files prior the update? Checking the files /usr/lib/systemd/system/sshd.service and drop-in files under /etc/systemd/system/sshd.service.d/ and the sshd.socket, sshd@.service, sshd-keygen.target and sshd-keygen@.service paths, whether they were not modified? Checking using rpm -qV openssh-server could also show whether the shipped files were modified. It is enough It is enough sh# touch /usr/lib/systemd/system/sshd.service sh# systemctl restart sshd Warning: The unit file, source configuration file or drop-ins of sshd.service changed on disk. Run 'systemctl daemon-reload' to reload units. And I do not have any overrides in /etc sh# rpm -qV openssh-server sh# ls -l /etc/systemd/system/ssh* ls: cannot access '/etc/systemd/system/ssh*': No such file or directory Ok, then it is something new probably in systemd. I miss the buildrequires in my spec file BuildRequires: systemd-rpm-macros but it is pulled in by something else according to the root.log of last build [1]). Otherwise, the scriptlets look just fine according to the packaging guidelines [2] so it is probably something to ask systemd. [1] https://koji.fedoraproject.org/koji/buildinfo?buildID=1270919 [2] https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd *** This bug has been marked as a duplicate of bug 1715737 *** |