[systemd-devel] target file and executable file relationship doubt
kennedy
kennedyhan at 163.com
Mon Oct 26 02:06:08 PDT 2015
Thanks. I realized that the service file depends on target file.
That "local-fs-pre.target" do nothing ? and then "local-fs.target" need boot.mount first ? The boot.mount and the other mount they were executed parallelize ?
And then arrived at "sysinit.target" , and then start some service (console-setup.service,udevd.service, etc.) parallel ?
在 2015-10-26 16:42:03,"Mantas Mikulėnas" <grawity at gmail.com> 写道:
On Mon, Oct 26, 2015 at 10:13 AM, kennedy <kennedyhan at 163.com> wrote:
what's the relationship between the target file and the real executable file ?
"local-fs-pre.target" ,"local-fs.target" will start which service (will execute which binary file) ?
None. They're .target units – their purpose is only to group other units. But they don't necessarily depend on any .service unit at all – in fact with local-fs*.target it's the opposite; *services* depend on these targets, and the targets themselves only depend on mounts.
$ systemctl list-dependencies local-fs.target
local-fs.target
● ├─boot.mount
● ├─home.mount
● ├─tmp.mount
● └─var-lib-machines.mount
--
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20151026/5f4e0796/attachment.html>
More information about the systemd-devel
mailing list