[systemd-devel] how to know what exactly parameter set in busCtl methods?
Lennart Poettering
lennart at poettering.net
Wed Jan 24 11:13:21 UTC 2018
On Di, 16.01.18 12:52, Tomasz Michalski (tmichalski23 at gmail.com) wrote:
> 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'.
There's TAB completion btw, that helps you with this. and "si" tells
you that you need to specify a string and an integer.
What the string and integer encode is usually documented here:
https://www.freedesktop.org/wiki/Software/systemd/dbus/
Though that document is unfortunately a bit out of date.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list