From f546837cdf396f4bb19a48380446341aa7e63b85 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 19 Mar 2012 18:07:28 +0000 Subject: [PATCH] * Don't use replaceChars. It's slow. svn path=/nixos/trunk/; revision=33270 --- modules/system/upstart/upstart.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/system/upstart/upstart.nix b/modules/system/upstart/upstart.nix index fa2e4fc22b7..d624fd31745 100644 --- a/modules/system/upstart/upstart.nix +++ b/modules/system/upstart/upstart.nix @@ -417,9 +417,7 @@ let config = { # The default name is the name extracted from the attribute path. - name = mkDefaultValue ( - replaceChars ["<" ">" "*"] ["_" "_" "_name_"] name - ); + name = mkDefaultValue name; # Default path for Upstart jobs. Should be quite minimal. path =