Fix configuration of nice level

This commit is contained in:
Sander van der Burg 2021-03-27 17:58:06 +01:00 committed by Sander van der Burg
parent 8d8dbcc8ad
commit af529514cf
1 changed files with 1 additions and 4 deletions

View File

@ -93,10 +93,7 @@ let
+ lib.optionalString (directory != null) ''
cd ${directory}
''
+ lib.optionalString (nice != null) ''
nice -n ${toString nice}
''
+ "exec ${invocationCommand}";
+ "exec ${lib.optionalString (nice != null) "nice -n ${toString nice}"} ${invocationCommand}";
};
} // lib.optionalAttrs (_pidFile != null) {
pidFile = _pidFile;