Fix a few inconsistencies with the real example

This commit is contained in:
Sander van der Burg 2020-07-18 22:07:07 +02:00 committed by Sander van der Burg
parent 50c1526401
commit 77a280e3ba
1 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ a sysvinit script that can be used to control a simple web application
process that just returns a static HTML page:
```nix
{createSystemVInitScript, runtimeDir}:
{createSystemVInitScript, tmpDir}:
{port, instanceSuffix ? ""}:
let
@ -109,7 +109,7 @@ createSystemVInitScript {
args = [ "-D" ];
environment = {
PORT = port;
PID_FILE = "${runtimeDir}/${instanceName}.pid";
PID_FILE = "${tmpDir}/${instanceName}.pid";
};
runlevels = [ 3 4 5 ];
@ -195,7 +195,7 @@ configurations can be generated.
This expression is a process manager-agnostic version of the previous example:
```nix
{createManagedProcess, runtimeDir}:
{createManagedProcess, tmpDir}:
{port, instanceSuffix ? ""}:
let
@ -214,7 +214,7 @@ createManagedProcess {
environment = {
PORT = port;
PID_FILE = "${runtimeDir}/${instanceName}.pid";
PID_FILE = "${tmpDir}/${instanceName}.pid";
};
user = instanceName;
credentials = {
@ -290,7 +290,7 @@ let
in
{
webapp = import ./webapp.nix {
inherit createManagedProcess runtimeDir;
inherit createManagedProcess tmpDir;
};
nginxReverseProxy = import ./nginx-reverse-proxy.nix {