changeset 99:cc85f4b02f8e

Add initial geohub systemd service file
author Lewin Bormann <lbo@spheniscida.de>
date Wed, 09 Dec 2020 21:37:37 +0100
parents 584f160f1db5
children e4bd4d0b4dfe
files examples/geohub.service
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/geohub.service	Wed Dec 09 21:37:37 2020 +0100
@@ -0,0 +1,18 @@
+[Unit]
+Description=A Real Time Geo Data Framework
+
+After=network.target
+Wants=postgresql.service
+
+[Service]
+Type=exec
+ExecStart=/usr/local/bin/geohub
+KillMode=process
+Restart=on-failure
+
+# Make sure that Rocket.toml is in the working directory.
+WorkingDirectory=/home/user/somewhere
+User=youruser
+
+[Install]
+WantedBy=multi-user.target