summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/files/aktualizr-autoprovision.service
blob: a5b92e358ebe6fdc9b774505fd44b5555cd34609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Aktualizr SOTA Client
Wants=network-online.target
After=network.target network-online.target
Requires=network-online.target

[Service]
RestartSec=10
Restart=always
EnvironmentFile=/var/sota/sota_provisioning_url.env
ExecStart=/bin/sh -c "/usr/bin/aktualizr --disable-keyid-validation --tls-server ${SOTA_GATEWAY_URI} --primary-ecu-hardware-id `cat /etc/hostname`  --config /var/sota/sota.toml"

[Install]
WantedBy=multi-user.target