Michael Grote
7a24089031
Reviewed-on: #584 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
14 lines
660 B
Django/Jinja
14 lines
660 B
Django/Jinja
{{ file_header | default () }}
|
|
|
|
[Unit]
|
|
Description=Save podcats and videos with youtubedl.
|
|
OnFailure=youtubedl_mail.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=-{{ ytdl_bin_path }} --config-location "{{ ytdl_conf_dir }}/podcast.txt"
|
|
ExecStart=-{{ ytdl_bin_path }} --config-location "{{ ytdl_conf_dir }}/youtube.txt"
|
|
Restart=on-failure
|
|
RestartSec=10min
|
|
|
|
# ExecStart=-/bin/xy : der - sorgt dafür das der Exit-Code ignoriert wird und die Unit nicht failed, wird heir verwendet weil ytdlp bei HTTP404 austeigt; siehe https://github.com/yt-dlp/yt-dlp#usage-and-options + https://serverfault.com/questions/680033/reset-ingnore-non-zero-exit-code-with-fleet-systemd
|