diff --git a/examples/mvw-dl.service.example b/examples/mvw-dl.service.example index 47d09f1..00dc6da 100644 --- a/examples/mvw-dl.service.example +++ b/examples/mvw-dl.service.example @@ -3,8 +3,8 @@ Description=MediathekViewWeb download helper After=multi-user.target [Service] -Type=simple -Restart=always +Type=oneshot +RemainAfterExit=no Environment='PATH=/usr/local/sbin:/usr/local/bin:/usr/bin' ExecStart=/opt/miniconda3/envs/mvw-dl/bin/python /opt/python/mvw-dl/dev/mvw-dl.py diff --git a/examples/mvw-dl.timer.example b/examples/mvw-dl.timer.example new file mode 100644 index 0000000..b545935 --- /dev/null +++ b/examples/mvw-dl.timer.example @@ -0,0 +1,10 @@ +[Unit] +Description=Run MediathekViewWeb download helper + +[Timer] +OnCalendar=0/2:2 +OnCalendar=0/1:20 +Persistent=true + +[Install] +WantedBy=timers.target