From 8935db253cfd7a3719a0addf89420042180f4a57 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 4 Mar 2012 16:17:56 +0000 Subject: [PATCH] * Upstart jobs: don't emit a description if there is none. svn path=/nixos/trunk/; revision=32775 --- modules/system/upstart/upstart.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/system/upstart/upstart.nix b/modules/system/upstart/upstart.nix index b4827e7f0cd7..dd846c2d5345 100644 --- a/modules/system/upstart/upstart.nix +++ b/modules/system/upstart/upstart.nix @@ -25,7 +25,9 @@ let '' # Upstart job `${job.name}'. This is a generated file. Do not edit. - description "${job.description}" + ${optionalString (job.description != "") '' + description "${job.description}" + ''} ${if isList job.startOn then "start on ${concatStringsSep " or " job.startOn}" @@ -144,7 +146,7 @@ let description = mkOption { type = types.string; - default = "(no description given)"; + default = ""; description = '' A short description of this job. '';