Tomasz Michalski
2018-01-16 11:52:37 UTC
Hi
I have a problem with call methods from terminal which take an argument,
for example when I try to use this one:
busctl call org.freedesktop.systemd1
/org/freedesktop/systemd1/unit/syscom_2epath org.freedesktop.systemd1.Unit
Kill
I get output
Invalid arguments '' to call org.freedesktop.systemd1.Unit.Kill(),
expecting 'si'.
The same with Restart:
Invalid arguments '' to call org.freedesktop.systemd1.Unit.Restart(),
expecting 's'.
I know that some parameters has to be given acc to introspects:
busctl introspect org.freedesktop.systemd1
/org/freedesktop/systemd1/unit/syscom_2epath
.Result property s "success"
.Unit property s "syscom.service"
org.freedesktop.systemd1.Unit interface - -
.Kill method si -
.Reload method s o
.ReloadOrRestart method s o
.ReloadOrTryRestart method s o
.ResetFailed method - -
.Restart method s o
.SetProperties method ba(sv) -
.Start method s o
.Stop method s o
.TryRestart method s o
However I don't know what I should exactly write, what exactly string? I
tried for example:
busctl call org.freedesktop.systemd1
/org/freedesktop/systemd1/unit/syscom_2eservice
org.freedesktop.systemd1.Unit Restart "dupa"
I got output:
Too few parameters for signature.
How can I get to know what exactly should I give as parameter. This is a
bit frustrating.
I have a problem with call methods from terminal which take an argument,
for example when I try to use this one:
busctl call org.freedesktop.systemd1
/org/freedesktop/systemd1/unit/syscom_2epath org.freedesktop.systemd1.Unit
Kill
I get output
Invalid arguments '' to call org.freedesktop.systemd1.Unit.Kill(),
expecting 'si'.
The same with Restart:
Invalid arguments '' to call org.freedesktop.systemd1.Unit.Restart(),
expecting 's'.
I know that some parameters has to be given acc to introspects:
busctl introspect org.freedesktop.systemd1
/org/freedesktop/systemd1/unit/syscom_2epath
.Result property s "success"
.Unit property s "syscom.service"
org.freedesktop.systemd1.Unit interface - -
.Kill method si -
.Reload method s o
.ReloadOrRestart method s o
.ReloadOrTryRestart method s o
.ResetFailed method - -
.Restart method s o
.SetProperties method ba(sv) -
.Start method s o
.Stop method s o
.TryRestart method s o
However I don't know what I should exactly write, what exactly string? I
tried for example:
busctl call org.freedesktop.systemd1
/org/freedesktop/systemd1/unit/syscom_2eservice
org.freedesktop.systemd1.Unit Restart "dupa"
I got output:
Too few parameters for signature.
How can I get to know what exactly should I give as parameter. This is a
bit frustrating.