Saltstack Official Home Assistant Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

7 年前
7 年前
12345678910111213141516
  1. {%- set service = salt['pillar.get']('supervisor:server:service:'+service_name) %}
  2. {%- from "home_assistant/map.jinja" import server with context %}
  3. [program:home_assistant_server]
  4. command=/srv/home_assistant/bin/hass --config /etc/home_assistant/
  5. directory=/srv/home_assistant
  6. autostart=true
  7. autorestart=true
  8. startretries=3
  9. exitcodes=0,2
  10. stopsignal=TERM
  11. redirect_stderr=true
  12. stdout_logfile=/var/log/home_assistant/home_assistant.log
  13. stdout_logfile_maxbytes=1MB
  14. stdout_logfile_backups=10
  15. user={{ server.user }}