| Summary: | Shell error in at-3.1.13-4.fc16.x86_64 /usr/lib64/pm-utils/sleep.d/56atd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alex <alex.vizor> |
| Component: | at | Assignee: | Marcela Mašláňová <mmaslano> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | jcm, jfeeney, mmaslano, sven |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-16 17:25:38 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I just reported this same issue to the test list, having rediscovered it. Jon. What is this script even meant to be doing? Why does at want to be restarted after suspend? (In reply to comment #2) > What is this script even meant to be doing? Why does at want to be restarted > after suspend? The script is based on bug #464393. It should be condrestart for sysvinit, but that doesn't matter now, because upstart can be hardly used in Fedora. atd really needs to handle this case itself without relying on being restarted. The easiest approach is probably to get rid of the sleeps and use POSIX timers instead. *** This bug has been marked as a duplicate of bug 754156 *** Much more to the point, it ought to be impossible for an update breaking suspend to land in even rawhide. There should be a process in place to catch that and prevent the package going out. |
There is is shell error here is diff to fix it: --- /usr/lib64/pm-utils/sleep.d/56atd 2011-11-14 13:09:53.000000000 +0300 +++ 56atd 2011-11-15 23:46:53.484899900 +0300 @@ -7,9 +7,10 @@ hibernate|suspend) ;; thaw|resume) - if [ -f /etc/init.d/atd ]; then + if [ -f /etc/init.d/atd ] + then /etc/init.d/atd restart - elif + else systemctl try-restart atd.service fi ;;