Convert machinectl to option and verb macros (#42117)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-05-16 17:18:10 +02:00
committed by GitHub
17 changed files with 1232 additions and 1350 deletions
+1
View File
@@ -120,6 +120,7 @@ machinectl disable long-running long-running long-running container1
[[ "$(TERM=dumb machinectl shell testuser@ /usr/bin/bash -c 'echo -ne $FOO')" == "" ]]
[[ "$(TERM=dumb machinectl shell --setenv=FOO=bar testuser@ /usr/bin/bash -c 'echo -ne $FOO')" == "bar" ]]
[[ "$(TERM=dumb machinectl shell testuser@ --setenv=FOO=bar /usr/bin/bash -c 'echo -ne $FOO')" == "bar" ]]
[[ "$(machinectl show --property=State --value long-running)" == "running" ]]
# Equivalent to machinectl kill --signal=SIGRTMIN+4 --kill-whom=leader