systemd service unit will run on a timer, change unit type to oneshot and supply a timer unit file

This commit is contained in:
hygienic-books 2022-03-23 23:40:41 +01:00
parent e269a110a6
commit 03b449c768
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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