Use "wants" instead of "requires"

This commit is contained in:
Eelco Dolstra 2012-10-02 10:32:29 -04:00
parent 7932978617
commit 2044ae785d

View File

@ -54,7 +54,7 @@ let
''; '';
in { in {
inherit (job) description wants before partOf environment path restartIfChanged unitConfig; inherit (job) description requires before partOf environment path restartIfChanged unitConfig;
after = after =
(if job.startOn == "stopped udevtrigger" then [ "systemd-udev-settle.service" ] else (if job.startOn == "stopped udevtrigger" then [ "systemd-udev-settle.service" ] else
@ -66,9 +66,9 @@ let
builtins.trace "Warning: job ${job.name} has unknown startOn value ${job.startOn}." [] builtins.trace "Warning: job ${job.name} has unknown startOn value ${job.startOn}." []
) ++ job.after; ) ++ job.after;
requires = wants =
(if job.startOn == "stopped udevtrigger" then [ "systemd-udev-settle.service" ] else [] (if job.startOn == "stopped udevtrigger" then [ "systemd-udev-settle.service" ] else []
) ++ job.requires; ) ++ job.wants;
wantedBy = wantedBy =
(if job.startOn == "" then [] else (if job.startOn == "" then [] else