infrastructure/roles/backup/templates/backup.service.j2

11 lines
236 B
Django/Jinja

[Unit]
Description=Autostart several tools and services
StartLimitIntervalSec=7200
StartLimitBurst=5
[Service]
Type=oneshot
ExecStart={{ service_path }}/backup.sh
WorkingDirectory={{ service_path }}
Restart=on-failure
RestartSec=15min