[systemd-devel] What unit file should I depend on?
Manuel Amador
rudd-o at rudd-o.com
Wed Feb 1 18:51:31 PST 2012
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?
Thanks for this info!
On Wednesday, February 01, 2012 11:47:25 Jóhann B. Guðmundsson wrote:
> On 02/01/2012 11:40 AM, Manuel Amador wrote:
> > In other words:
> >
> > - I want local-fs.target to "pull in" my unit without having to touch
> > local-fs.target to add a Requires= dependency,
> >
> > - I don't want the local-fs.target to be "reached" until my own unit
> > is done mounting filesystems,
> >
> > - I don't want my unit file to execute before the late block device
> > initialization is done,
> >
> > Catch my drift?
>
> You cant you either need to pull it in via Requires or enable it and the
> rest you solve by using Before and After
>
> JBG
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120201/76271167/attachment-0001.htm>
More information about the systemd-devel
mailing list