2022-12-22 16:36:26 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Home Assistant
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=homeassistant
|
|
|
|
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
|
2023-08-23 15:17:42 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=2
|
2022-12-22 16:36:26 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|