This instruction offers a configuration file to simplify the installation and management of Neo4j, a graph database, as a systemd service on Linux-based systems.

save this under /lib/systemd/system/neo4j.service

1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Neo4j Graph Database
Documentation=http://docs.neo4j.org
[Service]
Type=simple
ExecStart=/usr/bin/neo4j console
ExecStop=/usr/bin/neo4j stop
Restart=on-failure
[Install]
WantedBy=multi-user.target

Comments