[systemd-devel] What unit file should I depend on?

Lennart Poettering lennart at poettering.net
Wed Feb 1 19:36:59 PST 2012

On Wed, 01.02.12 18:47, Manuel Amador (rudd-o at rudd-o.com) wrote:

> So what I should do is something like, if I want my ZFS.service to be bound to 
> blah.service, is 
> /lib/systemd/system/blah.service.requires/ZFS.service ->
>    /lib/systemd/system/ZFS.service
> Right?  This would cause blah.service to require ZFS, correct?

Yes, but note that in general we do not recommend using "requires" deps
for this, but rather "wants". The difference is that the dep you add
might cause "blah" to fail. if you use "wants" instead this isn't the


Lennart Poettering - Red Hat, Inc.

More information about the systemd-devel mailing list