bundlewrap/bundles/homeassistant/files/homeassistant.service

18 lines
470 B
SYSTEMD
Raw Normal View History

2022-12-22 16:36:26 +00:00
[Unit]
Description=Home Assistant
After=network-online.target
[Service]
Type=simple
User=homeassistant
Environment="VIRTUAL_ENV=/opt/homeassistant/venv"
Environment="PATH=/opt/homeassistant/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
2022-12-22 16:36:26 +00:00
WorkingDirectory=/var/opt/homeassistant
2022-12-22 17:59:27 +00:00
ExecStart=/opt/homeassistant/venv/bin/hass -c "/var/opt/homeassistant"
2022-12-22 16:36:26 +00:00
RestartForceExitStatus=100
Restart=on-failure
RestartSec=2
2022-12-22 16:36:26 +00:00
[Install]
WantedBy=multi-user.target