garmin-dump, weather-dump and library-dump differed only in project, database and rotation; one db-dump PROJECT DATABASE week|day replaces them. The units keep their names and only change ExecStart.
12 lines
306 B
Desktop File
12 lines
306 B
Desktop File
[Unit]
|
|
Description=Dump the Garmin database to ~/.local/share/negsplit/dumps
|
|
StartLimitIntervalSec=2h
|
|
StartLimitBurst=4
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=%h/.local/bin/db-dump negsplit Garmin week
|
|
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
|
|
Restart=on-failure
|
|
RestartSec=5min
|