summarylogtreecommitdiffstats
path: root/systemd.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd.service')
-rw-r--r--systemd.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/systemd.service b/systemd.service
new file mode 100644
index 000000000000..163fda2b202e
--- /dev/null
+++ b/systemd.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=immudb database daemon
+Documentation=https://github.com/codenotary/immudb
+Documentation=https://docs.immudb.io/master/
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+User=immu
+Group=immu
+PIDFile=/var/lib/immudb/immudb.pid
+ExecStartPre=/bin/rm -f /var/lib/immudb/immudb.pid
+ExecStart=/usr/bin/immudb --config /etc/immudb/immudb.toml
+WorkingDirectory=/var/lib/immudb
+Restart=on-failure
+RestartSec=5
+TimeoutStopSec=20
+UMask=0027
+
+[Install]
+WantedBy=multi-user.target