paulbsd-salt/states/transmission/service.sls

14 lines
320 B
Plaintext

---
{%- 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 %}
transmission-service:
service.running:
- name: transmission-daemon
- enable: true