Re: [arch-general] systemd --test
On Mon, Nov 4, 2013 at 4:07 PM, Wayne S <linux@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'.
Hello Folks, I believe you want to run systemctl instead of systemd. The archwiki entry on systemd is very well written. The parameters to systemctl are given with examples. -- John F. Davis 6 Kandes Court Durham, NC 27713 919-888-8358 独树一帜
(Mon, Nov 04, 2013 at 07:57:04AM -0800) John Davis :
Hello Folks,
I believe you want to run systemctl instead of systemd. The archwiki entry on systemd is very well written. The parameters to systemctl are given with examples.
No, it is a systemd command and not a systemctl command (As seen in man systemd and not in systemctl). However the behavior seen by the first poster (And that I can reproduce) suggests that maybe --test is ignored (I also tried to run it and got the same thing with --test as without) -- Ismael
participants (3)
-
Ismael Bouya
-
John Davis
-
Karol Blazewicz