2017-11-22 23:40:39 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Memgraph: High performance, in-memory, transactional graph database
|
|
|
|
|
2023-10-23 00:44:24 +08:00
|
|
|
# Auto-restart config
|
|
|
|
#StartLimitIntervalSec=300
|
|
|
|
#StartLimitBurst=5
|
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
[Service]
|
|
|
|
User=memgraph
|
|
|
|
Group=memgraph
|
2017-12-21 23:03:54 +08:00
|
|
|
ExecStart=/usr/lib/memgraph/memgraph
|
2023-10-23 00:44:24 +08:00
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
# Uncomment this if Memgraph needs more time to write the snapshot on exit.
|
|
|
|
#TimeoutStopSec=5min
|
|
|
|
|
2023-10-23 00:44:24 +08:00
|
|
|
# Auto-restart config
|
|
|
|
#Restart=on-failure
|
|
|
|
#RestartSec=10s
|
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2023-10-23 00:44:24 +08:00
|
|
|
|
|
|
|
# Checks processes' memory usage and force kills it when it is taking up enough
|
|
|
|
# memory to make the system unstable / about to crash, e.g. on Debian-based OS:
|
|
|
|
# apt install systemd-oomd
|
|
|
|
# systemctl enable systemd-oomd
|
|
|
|
# systemctl start systemd-oomd
|