20 lines
600 B
Desktop File
20 lines
600 B
Desktop File
|
|
[Unit]
|
||
|
|
Description=Yukart imu: the WT61 on a USB-UART adapter, as the car's motion on the bus
|
||
|
|
Documentation=gitea:yukart/svc-core
|
||
|
|
# 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
|
||
|
|
# Mounting: add --forward AXIS --right AXIS once the module has its place in the car.
|
||
|
|
ExecStart=/usr/local/bin/yukart-imu
|
||
|
|
Restart=always
|
||
|
|
RestartSec=2
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|