mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
Warn about Upstart modules with an unknown startOn condition
This commit is contained in:
parent
9dce4bd9c5
commit
a44a7271a8
@ -59,7 +59,9 @@ let
|
||||
after =
|
||||
(if job.startOn == "stopped udevtrigger" then [ "systemd-udev-settle.service" ] else
|
||||
if job.startOn == "started udev" then [ "systemd-udev.service" ] else
|
||||
[]) ++ job.after;
|
||||
if job.startOn == "" || job.startOn == "startup" then [ ] else
|
||||
builtins.trace "Warning: job ‘${job.name}’ has unknown startOn value ‘${job.startOn}’." []
|
||||
) ++ job.after;
|
||||
|
||||
wantedBy =
|
||||
(if job.startOn == "" then [ ] else [ "multi-user.target" ]) ++ job.wantedBy;
|
||||
|
Loading…
Reference in New Issue
Block a user