README: Document the build process, add systemd service

Fixes #269.
This commit is contained in:
Valentin Tolmer
2022-08-01 08:45:55 +02:00
committed by nitnelave
parent 897704fab3
commit 36eed1e091
2 changed files with 43 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Nitnelave LLDAP
Documentation=https://github.com/nitnelave/lldap
# Only sqlite
After=network.target
[Service]
# The user/group LLDAP is run under. The working directory (see below) should allow write and read access to this user/group.
User=root
Group=root
# The location of the compiled binary
ExecStart=/opt/nitnelave/lldap \
run
# Only allow writes to the following directory and set it to the working directory (user and password data are stored here).
WorkingDirectory=/opt/nitnelave/
ReadWriteDirectories=/opt/nitnelave/
[Install]
WantedBy=multi-user.target