config.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. actions:
  2. - title: Stop {{ systemd_unit.unit }}
  3. shell: systemctl stop {{ systemd_unit.unit }}
  4. icon: <iconify-icon icon="zondicons:hand-stop"></iconify-icon>
  5. entity: systemd_unit
  6. triggers:
  7. - Update services file
  8. - title: Start {{ systemd_unit.unit }}
  9. shell: systemctl start {{ systemd_unit.unit }}
  10. icon: <iconify-icon icon="ic:round-directions-run"></iconify-icon>
  11. entity: systemd_unit
  12. triggers:
  13. - Update services file
  14. - title: Update services file
  15. shell: systemctl list-units -a -o json --no-pager | jq -c 'map(select (.unit | contains ("upsilon", "podman", "boot.mount"))) | .[]' > /etc/OliveTin/entities/systemd_units.json
  16. hidden: true
  17. execOnStartup: true
  18. entities:
  19. - file: /etc/OliveTin/entities/systemd_units.json
  20. name: systemd_unit
  21. dashboards:
  22. - title: My Services
  23. contents:
  24. - title: '{{ systemd_unit.description }}'
  25. type: fieldset
  26. entity: systemd_unit
  27. contents:
  28. - title: 'Status: {{ systemd_unit.sub }}'
  29. type: display
  30. - title: Start {{ systemd_unit.unit }}
  31. - title: Stop {{ systemd_unit.unit }}