You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/configuration/command-expansion.adoc
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,31 @@ Scripts and their syntax differ between operating systems.
41
41
42
42
== Enabling
43
43
44
-
The Neo4j startup script and the `neo4j` service can expand and execute the external commands by using the argument `--expand-commands`.
44
+
To enable command expansion, you must add the `--expand-commands` argument to the Neo4j startup script or _neo4j.service_ file.
45
+
46
+
=== Starting Neo4j with command expansion
47
+
48
+
To start Neo4j with command expansion enabled, you can use the following command:
45
49
46
50
[source, shell]
47
51
----
48
52
bin/neo4j start --expand-commands
49
53
----
50
54
51
-
If the startup script does not receive the `--expand-commands` argument, commands in the configuration file are treated as invalid settings.
55
+
=== Enabling command expansion in Neo4j as a service
56
+
57
+
If you are using Neo4j as a service, you can enable command expansion by adding the `--expand-commands` argument to the _/etc/systemd/system/neo4j.service_ file.
58
+
Otherwise, the commands in the configuration file are treated as invalid settings.
59
+
60
+
You must also add `Type=forking` under the `[Service]` section of _/etc/systemd/system/neo4j.service_ to allow for the command expansion.
61
+
62
+
[source]
63
+
----
64
+
[Service]
65
+
Type=forking
66
+
----
67
+
68
+
=== Security checks
52
69
53
70
Neo4j performs the following basic security checks on the _neo4j.conf_ file.
54
71
If they fail, Neo4j does not evaluate the script commands in _neo4j.conf_, and the Neo4j process does not start.
0 commit comments