| Summary: | Allow system-sleep resume scripts to be non-blocking or at least spawn background tasks | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | harald, johannbg, lnykryn, msekleta, plautrba, systemd-maint, vpavlin, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-08-21 17:23:32 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: | |
|
Description
Kamil Páral
2013-08-21 13:31:31 UTC
why not call "systemctl --no-block start somequirk.service" from such a script? Or call this directly via udev rules or have those workaround fixed upstream ;) Yes, there are other ways of handling this. Like writing my own service file or writing an udev rule. But most guys can't do that (me neither), and that's why I ask for a simple solution using simple shell scripts. There is only one piece missing, background tasks. Sure, we can all study advanced system internals, and we will have to, if there is no simpler way. As for having the bugs fixed, yes, that's a good (naive) idea, but that's just my use case. I'm sure there are dozens of valid use cases which are not related to hardware of software problems. You can launch a script with systemd-run, without needing to write a service file (systemd >= 205). This gives you a background task with nice control over it. (In reply to Zbigniew Jędrzejewski-Szmek from comment #4) Amazing, thanks. I'll try that once F20 is stable enough to run on my hardware. |