Skip to content

Commit cbeb6de

Browse files
authored
Correct NODE_OPTIONS variable name to be consistent with reality.
1 parent 53e506a commit cbeb6de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/faq/customising-systemd-on-pi.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ This guide shows how the service can be customised for some common scenarios.
1717

1818
The service comes configured for the `pi` user. To change which user it runs as,
1919
edit the service definition `/lib/systemd/system/nodered.service` and change the
20-
`User`, `Group` and `WorkingDirectory` lines as appropriate:
20+
`User`, `Group` and `WorkingDirectory` lines as appropriate. You can also set the
21+
amount of memory space to use in MB.
2122

2223
```yaml
2324
[Service]
@@ -26,8 +27,8 @@ Type=simple
2627
User=<your_user>
2728
Group=<your_user>
2829
WorkingDirectory=/home/<your_user>
29-
Nice=5
30-
Environment="PI_NODE_OPTIONS=--max_old_space_size=256"
30+
31+
Environment="NODE_OPTIONS=--max_old_space_size=256"
3132
...
3233
```
3334

@@ -52,7 +53,7 @@ another `Environment=...` line. For example:
5253
```yaml
5354
...
5455
Nice=5
55-
Environment="NODE_OPTIONS=--max-old-space-size=128"
56+
Environment="NODE_OPTIONS=--max-old-space-size=256"
5657
Environment="HTTP_PROXY=my-proxy-server-address"
5758
...
5859
```

0 commit comments

Comments
 (0)