Mercurial > lbo > hg > geohub
view examples/geohub.service @ 106:da9fb0032788
Add RestartSec to systemd unit
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 26 Dec 2020 08:28:38 +0100 |
parents | cc85f4b02f8e |
children |
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 RestartSec=5 # Make sure that Rocket.toml is in the working directory. WorkingDirectory=/home/user/somewhere User=youruser [Install] WantedBy=multi-user.target