summarylogtreecommitdiffstats
path: root/home-assistant-git.service
blob: 04d738adb1995574ac0a3e171afe16f6965c26be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[Unit]
Description=Home assistant GIT
After=network.target

[Service]
Restart=on-failure
User=hass
Group=hass
DynamicUser=true
LogsDirectory=hass
StateDirectory=hass
WorkingDirectory=/var/lib/hass
Environment=HOME=/var/lib/hass

ExecStartPre=/usr/bin/python3.12 -m venv --upgrade /var/lib/hass/.venv
ExecStartPre=/var/lib/hass/.venv/bin/python -m pip install wheel
ExecStartPre=/var/lib/hass/.venv/bin/python -m pip install /usr/share/home-assistant-git/homeassistant-@VERSION@-py3-none-any.whl
ExecStart=/var/lib/hass/.venv/bin/hass \
  --config /var/lib/hass/ \
  --log-file /var/log/hass/home-assistant.log \
  --log-rotate-days 1
RestartForceExitStatus=100
TimeoutSec=15min

AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true

[Install]
WantedBy=multi-user.target