# Hackish way to get the sytemd unit at the right place mv /lib/systemd/system/memgraph.service %{_unitdir} # memgraph user and group must be set in preinst chown memgraph:memgraph /var/lib/memgraph || exit 1 chmod 750 /var/lib/memgraph || exit 1 chown memgraph:adm /var/log/memgraph || exit 1 chmod 750 /var/log/memgraph || exit 1 # Make examples directory immutable (optional) chattr +i -R /usr/share/memgraph/examples || true