[Unit] Description=Yukart orin-status: the Orin's own health on the bus Documentation=http://pi5-16:3005/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 # The ELM's address, for elm_connected; without the file nothing is reported. EnvironmentFile=-/etc/default/yukart-elm # 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 Restart=always RestartSec=2 [Install] WantedBy=multi-user.target