[Unit] Description=Run the backup script StartLimitIntervalSec=7200 StartLimitBurst=5 [Service] Type=oneshot ExecStart={{ (service_path, 'backup.sh') | path_join }} WorkingDirectory={{ service_path }} Restart=on-failure RestartSec=15min