[systemd-devel] [PATCHv6 2/3] hibernate-resume: add a tool to write a device node's major:minor to /sys/power/resume.

Lennart Poettering lennart at poettering.net
Wed Aug 27 11:57:27 PDT 2014


On Wed, 27.08.14 10:59, Andrei Borzenkov (arvidjaar at gmail.com) wrote:

> On Wed, Aug 27, 2014 at 10:18 AM, Thomas Bächler <thomas at archlinux.org> wrote:
> >> +[Unit]
> >> +Description=Resume from hibernation using device %f
> >> +Documentation=man:systemd-hibernate-resume at .service(8)
> >> +DefaultDependencies=no
> >> +BindsTo=%i.device
> >
> > What's the purpose of BindsTo= as opposed to Requires= here. They are
> > both the same for a oneshot service, but the former is more confusing.
> >
> 
> Semantic of Requires is simply wrong for device - you cannot "start"
> device, you can only passively wait for it. Requisite is more
> appropriate to express "cannot start until device is available". But I
> think, BindsTo is established usage for devices and is quite clear
> here.

Well, "starting" a device means waitinf for it. Requires and Requisite
really have the same effect here... 

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list