You are not logged in.

#1 2013-09-15 15:56:09

Ovion
Member
Registered: 2013-02-24
Posts: 78

[solved] Documentation on systemd-targets

Hi,

systemd is called 'well documented', but I am missing one type of documentation: something that lists precisely, under which circumstances a target is triggered, for example that the sleep.target is triggered on hibernate and suspend and if it is triggered on bootup. And maybe even when, because there are several targets whose name implies a certain timing, as local-fs-pre.target or network-online.target vs. network.target, which might be importaint for a service.

Though some of the target's names seem to bee quite intuitive, this is not true for all of them, thus I'm missing a list or something like that mentioned above. Are my skills concerning using search engines to find a solution that poor or is systemd poorly documented in that manner?

Last edited by Ovion (2013-09-15 16:32:30)

Offline

#2 2013-09-15 16:07:39

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [solved] Documentation on systemd-targets

you should read the manpages bootup(7) and systemd.special(7)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2013-09-15 16:07:50

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

Re: [solved] Documentation on systemd-targets

I'm not sure how much info you need.

$ locate local-fs-pre.target
/usr/lib/systemd/system/local-fs-pre.target
$ cat /usr/lib/systemd/system/local-fs-pre.target
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Local File Systems (Pre)
Documentation=man:systemd.special(7)
RefuseManualStart=yes
man systemd.special wrote:

local-fs-pre.target
    This target unit is automatically ordered before all local mount points marked with auto (see above). It can be used to execute certain units before all local mounts.

Offline

#4 2013-09-15 16:32:17

Ovion
Member
Registered: 2013-02-24
Posts: 78

Re: [solved] Documentation on systemd-targets

Ok, I am blind, I somehow oversaw the explanations down in systemd.special. I think that's what I need.

Thanks!

Offline

#5 2013-09-15 16:37:16

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [solved] Documentation on systemd-targets

The next time you don't know where something systemd related is documented:

# man systemd.directives

Offline

#6 2013-09-15 16:49:19

Ovion
Member
Registered: 2013-02-24
Posts: 78

Re: [solved] Documentation on systemd-targets

That's awesome, I didn't know this manpage, but you can bet I'll keep it in mind! Thanks a lot. systemd is indeed well documented, if you know where to look. systemd.directives although seems to be less promoted as it should or I simply read the wrong channels.

Offline

Board footer

Powered by FluxBB