[arch-general] systemd --test

Karol Blazewicz karol.blazewicz at gmail.com
Mon Nov 4 10:43:18 EST 2013


On Mon, Nov 4, 2013 at 4:07 PM, Wayne S <linux at zuik.net> wrote:
> my apologies for improperly sending email to list.
>
> My question is how to properly use systemd --test:
>
> From the website: http://www.freedesktop.org/wiki/Software/systemd/TipsAndTricks/
>
> It suggests to run this to see what would execute on boot for a unit:
>
> # systemd --test --system --unit=multi-user.target
>
> If I run this as root, I get command not found. So it is not in $PATH.
>
> If I run as root I get don't run as root:
>
> # /usr/lib/systemd/systemd --test --system --unit=multi-user.target
> Don't run test mode as root.
>
> If I run as user, I get a bunch of errors:
>
> $ /usr/lib/systemd/systemd --test --system --unit=multi-user.target
> systemd 208 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
> Failed to set hostname to <arch-t3400>: Operation not permitted
> Failed to open /dev/tty0: Permission denied
> Failed to create root cgroup hierarchy: Permission denied
> Failed to allocate manager object: Permission denied
>
> Is there a way to use this command properly?
>
> Wayne

I'm not a systemd guru, but try 'systemctl list-dependencies multi-user.target'.


More information about the arch-general mailing list