2020-07-10 00:58:55 +02:00
|
|
|
---
|
2023-01-16 12:01:24 +01:00
|
|
|
{%- from "transmission/map.jinja" import transmission with context %}
|
|
|
|
|
|
|
|
{%- if salt['http.query'](transmission.url)['status'] == 503 %}
|
|
|
|
transmission-service-stop:
|
|
|
|
service.dead:
|
|
|
|
- name: transmission-daemon
|
|
|
|
{%- endif %}
|
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
transmission-service:
|
|
|
|
service.running:
|
|
|
|
- name: transmission-daemon
|
2023-01-16 12:01:24 +01:00
|
|
|
- enable: true
|