-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: add ExecXYZEx= bus hook ups to all exec command properties #13369
Conversation
Hmm, could we have some test that does what it is supposed to do? Maybe somewhere in the test/TEST-* ? It's easy to make a typo in stuff like this, so we should have at least a smoke test that makes a pass through the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @keszybz that having a test for this would be great :-)
src/systemctl/systemctl.c
Outdated
@@ -5534,16 +5534,22 @@ static int show_one( | |||
{ "IPEgressBytes", "t", NULL, offsetof(UnitStatusInfo, ip_egress_bytes) }, | |||
{ "IOReadBytes", "t", NULL, offsetof(UnitStatusInfo, io_read_bytes) }, | |||
{ "IOWriteBytes", "t", NULL, offsetof(UnitStatusInfo, io_write_bytes) }, | |||
{ "ExecCondition", "a(sasbttttuii)", map_exec, 0 }, | |||
{ "ExecCondition", "a(sasasttttuii)", map_exec, 0 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be ExecConditionEx
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Herp derp. Yes.
I've added new tests and fixed the copy pasta. PTAL. |
semaphoreci simply timed out during build. I'll restart it. bionic-arm64 fails:
It seems that ExecReloadEx is somehow wrong... |
This needs a rebase because TEST-37 is already taken :( |
Oh. I think we need some better way of assigning those numbers. |
I run the test on arm64 for a while in a loop, and it succeeds without issue. Dunno, maybe let's treat this is a fluke. I don't see why arm64 would behave any different here. So please rename the test to TEST-40-… and we can merge. |
The "Ex" variant was originally only added for ExecStartXYZ= but it makes sense to have feature parity for the rest of the exec command properties as well (e.g. ExecReload=, ExecStop=, etc).
Bumped test number to 40 |
Summary: New upstream release, plus a backport of systemd/systemd#13369 Reviewed By: anitazha Differential Revision: D17631247 fbshipit-source-id: e21450480a66af1a2e28dbe2a5612f3ddf62d4d8
The "Ex" variant was originally only added for ExecStartXYZ= but it makes
sense to have feature parity for the rest of the exec command properties
as well (e.g. ExecReload=, ExecStop=, etc).