2022-12-22 17:36:26 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Home Assistant
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=homeassistant
|
2024-10-27 17:45:22 +01:00
|
|
|
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 17:36:26 +01:00
|
|
|
WorkingDirectory=/var/opt/homeassistant
|
2022-12-22 18:59:27 +01:00
|
|
|
ExecStart=/opt/homeassistant/venv/bin/hass -c "/var/opt/homeassistant"
|
2022-12-22 17:36:26 +01:00
|
|
|
RestartForceExitStatus=100
|
2023-08-23 17:17:42 +02:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=2
|
2022-12-22 17:36:26 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|