view examples/geohub.service @ 99:cc85f4b02f8e

Add initial geohub systemd service file
author Lewin Bormann <lbo@spheniscida.de>
date Wed, 09 Dec 2020 21:37:37 +0100
parents
children da9fb0032788
line wrap: on
line source

[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