2026-10-12 16:33:31 +09:00
|
|
|
[Unit]
|
|
|
|
|
Description=Yukart orin-status: the Orin's own health on the bus
|
|
|
|
|
Documentation=gitea:yukart/svc-core
|
|
|
|
|
# Tier 2. Ordered after the broker and nothing else; it reconnects by itself if the broker restarts.
|
|
|
|
|
After=mosquitto.service
|
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=mikkeli
|
|
|
|
|
# The UPS INA219 is on /dev/i2c-7, group i2c.
|
|
|
|
|
SupplementaryGroups=i2c
|
2026-10-13 22:57:30 +09:00
|
|
|
# The ELM's address, for elm_connected; without the file nothing is reported.
|
|
|
|
|
EnvironmentFile=-/etc/default/yukart-elm
|
2026-10-14 08:32:17 +09:00
|
|
|
# Below 11.0 V while discharging for 30 s (about 10 % left at the Orin's load): power off
|
|
|
|
|
# cleanly, through the polkit grant svc-gw installs (50-yukart-gw-power.pkla), not sudo.
|
|
|
|
|
ExecStart=/usr/local/bin/yukart-orin-status --elm ${ELM_ADDR} --poweroff-below 11.0 --poweroff-after 30
|
2026-10-12 16:33:31 +09:00
|
|
|
Restart=always
|
|
|
|
|
RestartSec=2
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|