You are not logged in.

#1 2014-07-23 09:55:56

e-max
Member
Registered: 2006-11-27
Posts: 16

recursive systemd dependencies graph

Hello
I wonder if there is any way to plot full dependencies graph for service.
  All examples I've seen (for systemd-analyze and systemctl list-depencensies)   show only one level of dependencies.
For example if my service A  requires service B and  service B requires service C  I would like to get picture like this  A -> B -> C.     But seems that it works only for target dependencies.

Best regards,
Max

Offline

#2 2014-07-23 13:22:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,503
Website

Re: recursive systemd dependencies graph

Have you seen garchdeps?


Para todos todo, para nosotros nada

Offline

#3 2014-07-24 12:49:22

e-max
Member
Registered: 2006-11-27
Posts: 16

Re: recursive systemd dependencies graph

Thanks for the answer!
I am afraid it is not exactly what I am looking for.  I want something more systemd specific.  I've written my application and wrapped it into systemd services  and I would like to get graph with dependencies.  Unfortunately arch packages is not an option because we probably won't use Arch in production. ( Although I, personally, am a big fan of this distributive. )
I was hoping that somebody with experience in systemd may have answer.

Offline

#4 2014-07-24 12:58:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: recursive systemd dependencies graph

Offline

#5 2014-07-24 21:01:53

branch
Member
Registered: 2014-03-16
Posts: 209

Re: recursive systemd dependencies graph

Offline

#6 2014-07-24 21:29:27

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: recursive systemd dependencies graph

That is also in the man page for systemd-analyze. And the systemctl man page mentions an --all option for the list-dependencies command that might be of interest to the OP.

Offline

#7 2014-07-30 15:29:21

e-max
Member
Registered: 2006-11-27
Posts: 16

Re: recursive systemd dependencies graph

Thanks Raynman!

It's a shame that I missed option --all.  ^(   It's even more detailed that i need to but I can deal with it.  Thanks !

And I don't get how to achieve the same with systemd-analyze. It works very well if I need to get graph for all services, but if I try to get only graph for particular service and his children I get only two level's graph.

Offline

Board footer

Powered by FluxBB