summarylogtreecommitdiffstats
path: root/oml2-server.service
diff options
context:
space:
mode:
authorOlivier Mehani2016-03-08 16:10:10 +1100
committerOlivier Mehani2016-03-08 16:10:15 +1100
commitf6b6de34e8f583c970330e3b0f4ee7ac950a285b (patch)
tree9ad9a73b06e1abb50ced8df50bfb3e1471b508ef /oml2-server.service
downloadaur-oml2.tar.gz
Import 2.11.1rc from upstream release
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Diffstat (limited to 'oml2-server.service')
-rw-r--r--oml2-server.service32
1 files changed, 32 insertions, 0 deletions
diff --git a/oml2-server.service b/oml2-server.service
new file mode 100644
index 000000000000..fc756822ff58
--- /dev/null
+++ b/oml2-server.service
@@ -0,0 +1,32 @@
+# Do not make modifications to this file, as they may not survive update.
+# Instead, copy it to /etc/systemd/system/, and modify it there; then, run
+# sudo systemctl reenable oml2-server.service
+# That modified copy will override the parameters here.
+#
+# See systemd(1) for details.
+#
+[Unit]
+Description=OML2 measurements collection server
+After=network.target
+# SQLite3 backend (and logs)
+RequiresMountsFor=/var
+
+# Uncomment the following lines when using the PostgreSQL backend
+#Requires=postgresql.service
+#After=postgresql.service
+
+[Service]
+Type=simple
+# This creates SQLite3 databases in /var/oml2, use
+# "--data-dir=DIR"
+# to override.
+#
+# See oml2-server(1) for details.
+ExecStart=/usr/bin/oml2-server -l 3003 --logfile=/var/log/oml2-server.log --user=oml2 --group=oml2
+
+# Add the following to the ExecStart line to enable and configure the PostgreSQL
+# backend
+#--backend=postgresql --pg-host=localhost --pg-port=5432 --pg-user=oml2 --pg-pass=correcthorsebatterystaple
+
+[Install]
+WantedBy=multi-user.target