[systemd-devel] What unit file should I depend on?
Manuel Amador
rudd-o at rudd-o.com
Thu Feb 2 04:43:13 PST 2012
I thought the DefaultDependencies=No was a given. Obviously that is what I
want.
On Thursday, February 02, 2012 04:39:09 Lennart Poettering wrote:
> On Wed, 01.02.12 18:51, Manuel Amador (rudd-o at rudd-o.com) wrote:
> > So:
> >
> > * Requires=ZFS.service in local-fs.target
> >
> > (accomplished using a symlink to ZFS.service in
> > local-fs.target.requires)
> >
> > * Before=local-fs.target in ZFS.service
> >
> > * After=fedora-storage-init-late.service in ZFS.service
> >
> > That way
> >
> > -- local-fs.target is required, pulling in ZFS.service and f-s-i-l.service
> > --
> >
> > -- f-s-i-l.service happens --
> >
> > -- ZFS.service happens --
> >
> > -- local-fs.target is reached --
> >
> > upon boot, right?
>
> No, not unless you also add a DefaultDependencies=no in there. Otherwise
> your service will be ordered after basic.target which is ordered after
> local-fs.target, which means you run into a dep loop.
>
> Lennart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120202/45448857/attachment.html>
More information about the systemd-devel
mailing list