Description of problem: /etc/cron.hourly/leafnode is installed with filemode 0644 and is not run by cron. Version-Release number of selected component (if applicable): leafnode-1.11.8-13.fc21.x86_64 How reproducible: Every time Steps to Reproduce: 1. install leafnode-package 2. check permissions of /etc/cron.hourly/leafnode Actual results: filemode is 0644. Expected results: filemode should be 0755. Additional info: see %install section of the leafnode.spec-file: mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.hourly install -m644 %{SOURCE2} \ $RPM_BUILD_ROOT/%{_sysconfdir}/cron.hourly/leafnode that should actually read "install -m755"
Just for some history here... I added the cron job long ago, but it was all commented with a note that you should enable it when you had leafnode configured to your needs. mcepl later changed that to a real cron job, but didn't update the permissions to be executable. Personally, I would prefer it not run on install, but I don't actually use the package anymore, so I'll leave the solution up to mcepl. ;)
I would be perfectly fine if the cronjob needs to be enabled. Maybe add some variable at /etc/sysconfig/leafnode for example. However, the main culprit with the current package is that the cronjob breaks on every update. On Fedora 20 (and earlier if I remember correctly) I changed the permissions to 755 after installation. After the update to Fedora 21 the permissions got reset to 644, resulting in the cronjob not longer executed until the permissions are set again to 755. So either fix the permissions (maybe together with some configuration in /etc/sysconfig to enable cron if desired), or remove the cronjob all together. At least the permissions should not be resetted on updates, breaking a former working setup.
(In reply to Matthias Hensler from comment #2) > However, the main culprit with the current package is that the cronjob > breaks on every update. On Fedora 20 (and earlier if I remember correctly) I You are right. I am going to change permissions promptly.
Created attachment 967696 [details] suggested patch (In reply to Kevin Fenzi from comment #1) > Personally, I would prefer it not run on install, but I don't actually use > the package anymore, so I'll leave the solution up to mcepl. ;) Given that this really makes people cringe (plus we break their setup on every update), I would rather make this change. (and yes, I am thinking about moving to leafnode2 myself, but it would be sad to leave this mess behind). What do you think about the attached patch? Scratch builds are available for * Rawhide http://koji.fedoraproject.org/koji/taskinfo?taskID=8360085 * F21 http://koji.fedoraproject.org/koji/taskinfo?taskID=8360106 * EPEL7 http://koji.fedoraproject.org/koji/taskinfo?taskID=8361981 Please, test and let me know.
leafnode-1.11.11-1.fc22.x86_64, which was released some days ago, broke the setup again. X-Bits were again removed from /etc/cron.hourly/leafnode, so the change mentioned in #3 is not yet in the package.
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Problem reoccured on update to Fedora 23. Package leafnode-1.11.11-1.fc23.x86_64 is still affected, so changing version to 23.
leafnode-1.11.11-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-9826b4640f
leafnode-1.11.11-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-32e2b005dd
leafnode-1.11.11-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-e7f9cc6f6e
leafnode-1.11.11-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update leafnode' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-9826b4640f
leafnode-1.11.11-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update leafnode' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-e7f9cc6f6e
Just installed leafnode-1.11.11-2.fc23.x86_64 from Koji, which seems fine and fixes the reported problem. Thanks.
leafnode-1.11.11-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update leafnode' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-32e2b005dd
leafnode-1.11.11-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
leafnode-1.11.11-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
leafnode-1.11.11-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.