2026-10-14 00:23:52 +09:00
|
|
|
[Unit]
|
|
|
|
|
Description=Yukart imu: the WT61 on a USB-UART adapter, as the car's motion on the bus
|
2026-10-14 08:41:48 +09:00
|
|
|
Documentation=http://pi5-16:3005/yukart/svc-core
|
2026-10-14 00:23:52 +09:00
|
|
|
# Tier 2. Ordered after the broker and nothing else: it finds the adapter by itself,
|
|
|
|
|
# whenever it appears.
|
|
|
|
|
After=mosquitto.service
|
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=mikkeli
|
|
|
|
|
# USB serial adapters belong to dialout: the one right it needs, no sudo.
|
|
|
|
|
SupplementaryGroups=dialout
|
2026-10-14 13:28:40 +09:00
|
|
|
# /var/lib/yukart/imu, owned by the service user: the measured mounting (mount.json),
|
|
|
|
|
# written by `yukart-imu --calibrate SESSION --write`. Until one exists, the defaults
|
|
|
|
|
# (module flat, Y forward) or --forward/--right apply.
|
|
|
|
|
StateDirectory=yukart/imu
|
2026-10-14 00:23:52 +09:00
|
|
|
ExecStart=/usr/local/bin/yukart-imu
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=2
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|