systemd service unit will run on a timer, change unit type to oneshot and supply a timer unit file
This commit is contained in:
		| @@ -3,8 +3,8 @@ Description=MediathekViewWeb download helper | |||||||
| After=multi-user.target | After=multi-user.target | ||||||
|  |  | ||||||
| [Service] | [Service] | ||||||
| Type=simple | Type=oneshot | ||||||
| Restart=always | RemainAfterExit=no | ||||||
| Environment='PATH=/usr/local/sbin:/usr/local/bin:/usr/bin' | 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 | ExecStart=/opt/miniconda3/envs/mvw-dl/bin/python /opt/python/mvw-dl/dev/mvw-dl.py | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								examples/mvw-dl.timer.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								examples/mvw-dl.timer.example
									
									
									
									
									
										Normal 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 | ||||||
		Reference in New Issue
	
	Block a user