summaryrefslogtreecommitdiffstats
path: root/systemd/omnidb.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/omnidb.service')
-rw-r--r--systemd/omnidb.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd/omnidb.service b/systemd/omnidb.service
new file mode 100644
index 0000000..406cbe5
--- /dev/null
+++ b/systemd/omnidb.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=OmniDB server daemon
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/bin/bash -c "/opt/omnidb-server/omnidb-server -c /etc/omnidb.conf &"
+RemainAfterExit=yes
+User=root
+Group=root
+
+[Install]
+WantedBy=multi-user.target