You are not logged in.

#1 2016-08-09 05:09:56

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 40

systemctl status -t services not recognized as valid command?

Hello

I tried to check out system status of my Arch machine but when I typed

`systemctl status -t services`

it drew some tree and that's it. -t timers doesn't seem to work either. Have systemctl commands changed recently? I don't experience such behavior on other machines with OpenSUSE.

Last edited by lapsio (2016-08-10 07:08:06)

Offline

#2 2016-08-09 11:31:49

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 47

Re: systemctl status -t services not recognized as valid command?

Try systemctl -t service NOT systemd -t services

Offline

#3 2016-08-10 07:11:42

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 40

Re: systemctl status -t services not recognized as valid command?

Sorry it's typo of course I'm using valid command. Here's comparison of this command on my Arch machine vs OpenSUSE:

arch:
http://pastebin.com/2adnrbsY

(that's it, nothing else)

suse:
http://pastebin.com/8r2bqWCZ

I'm not sure what behavior is correct. On RedHat videos I saw systemctl behaving like one on suse. It's root account on Arch, just fish shell derped with prompt.

Last edited by lapsio (2016-08-10 07:13:26)

Offline

#4 2016-08-10 08:18:10

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: systemctl status -t services not recognized as valid command?

RTFM

If no units are specified, show system status. If combined with --all, also show the status of all units (subject to limitations specified with -t).

The “tree” is the system status.
If you want to see all units as well as the system status, you need to add --all
If you only want to see all units (no system status), specify '*' as the unit - the single quotes are needed to avoid globbing by the shell (I'm assuming fish is the same as bash, zsh, etc. as I don't know fish)

Viz:

# show system status (-t irrelevant)
systemctl status
# show system status and device units status
systemctl status -t device --all
# show device units status
systemctl status -t device '*'

Last edited by ukhippo (2016-08-10 08:24:29)

Offline

#5 2016-08-10 09:56:00

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 40

Re: systemctl status -t services not recognized as valid command?

Thanks, it works

Offline

Board footer

Powered by FluxBB