Bug 1255031
Summary: | remain-after-exit doesn't work in transient units | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jakub Prokes <jprokes> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | lnykryn, systemd-maint-list |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-19 22:48:24 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
Jakub Prokes
2015-08-19 13:10:00 UTC
I think that the problem is that the remain-after-exit parameter is added to the command true, you should call systemd-run --unit test2 --remain-after-exit true then, at least on fedora, it works fine. Thats true, I have been writing comment in parallel to you. Automated test works now. Sorry for disturbing. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: unit --remain-after-exit :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Command 'systemd-run --unit test --remain-after-exit true' (Expected 0, got 0) :: [ PASS ] :: Command 'systemctl -l status test.service' (Expected 0, got 0) :: [ PASS ] :: Command 'systemctl stop test.service' (Expected 0, got 0) :: [ PASS ] :: Command 'systemctl -l status test.service' (Expected 3, got 3) :: [ PASS ] :: Command 'systemd-run --unit test true' (Expected 0, got 0) :: [ PASS ] :: Command 'systemctl -l status test.service' (Expected 3, got 3) :: [ PASS ] :: Command 'systemctl stop test.service' (Expected 5, got 5) :: [ LOG ] :: Duration: 11s :: [ LOG ] :: Assertions: 7 good, 0 bad :: [ PASS ] :: RESULT: unit --remain-after-exit |