From c1159edc65989d6b33aa68e0822ec6e388576b8e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 31 Oct 2013 13:26:06 +0100 Subject: Remove remaining references to Upstart --- nixos/modules/system/upstart/upstart.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'nixos/modules/system/upstart') diff --git a/nixos/modules/system/upstart/upstart.nix b/nixos/modules/system/upstart/upstart.nix index 464041ebe6b2..aa5c8dfe64b2 100644 --- a/nixos/modules/system/upstart/upstart.nix +++ b/nixos/modules/system/upstart/upstart.nix @@ -107,17 +107,18 @@ let type = types.str; example = "sshd"; description = '' - Name of the Upstart job. + Name of the job, mapped to the systemd unit + name.service. ''; }; startOn = mkOption { - # !!! Re-enable this once we're on Upstart >= 0.6. #type = types.str; default = ""; description = '' - The Upstart event that triggers this job to be started. - If empty, the job will not start automatically. + The Upstart event that triggers this job to be started. Some + are mapped to systemd dependencies; otherwise you will get a + warning. If empty, the job will not start automatically. ''; }; @@ -125,7 +126,7 @@ let type = types.str; default = "starting shutdown"; description = '' - The Upstart event that triggers this job to be stopped. + Ignored; this was the Upstart event that triggers this job to be stopped. ''; }; @@ -144,7 +145,7 @@ let default = ""; description = '' Shell commands executed before the job is stopped - (i.e. before Upstart kills the job's main process). This can + (i.e. before systemd kills the job's main process). This can be used to cleanly shut down a daemon. ''; }; @@ -192,7 +193,7 @@ let type = types.str; default = "none"; description = '' - Determines how Upstart detects when a daemon should be + Determines how systemd detects when a daemon should be considered “running”. The value none means that the daemon is considered ready immediately. The value fork means that the daemon will fork once. @@ -261,8 +262,13 @@ in jobs = mkOption { default = {}; description = '' - This option defines the system jobs started and managed by the - Upstart daemon. + This option is a legacy method to define system services, + dating from the era where NixOS used Upstart instead of + systemd. You should use + instead. Services defined using are + mapped automatically to , but + may not work perfectly; in particular, most + conditions are not supported. ''; type = types.loaOf types.optionSet; options = [ jobOptions upstartJob ]; -- cgit 1.4.1