Merge pull request #112019 from 7c6f434c/fix-service-runner
nixos/service-runner: fix evaluation
This commit is contained in:
commit
27f172ebd1
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ let
|
|||
|
||||
# Run the ExecStartPre program. FIXME: this could be a list.
|
||||
my $preStart = <<END_CMD;
|
||||
${service.serviceConfig.ExecStartPre or ""}
|
||||
${concatStringsSep "\n" (service.serviceConfig.ExecStartPre or [])}
|
||||
END_CMD
|
||||
if (defined $preStart && $preStart ne "\n") {
|
||||
print STDERR "running ExecStartPre: $preStart\n";
|
||||
|
@ -79,7 +79,7 @@ let
|
|||
|
||||
# Run the ExecStartPost program.
|
||||
my $postStart = <<END_CMD;
|
||||
${service.serviceConfig.ExecStartPost or ""}
|
||||
${concatStringsSep "\n" (service.serviceConfig.ExecStartPost or [])}
|
||||
END_CMD
|
||||
if (defined $postStart && $postStart ne "\n") {
|
||||
print STDERR "running ExecStartPost: $postStart\n";
|
||||
|
|
Loading…
Reference in a new issue