2026-10-09 20:15:13 +09:00
|
|
|
[Unit]
|
|
|
|
|
Description=Yukart recorder: raw CAN and GNSS sessions to disk
|
2026-10-14 08:41:48 +09:00
|
|
|
Documentation=http://pi5-16:3005/yukart/svc-core
|
2026-10-09 20:15:13 +09:00
|
|
|
# Tier 1, ordered after nothing: CAN adapter and gpsd come and go, and the
|
|
|
|
|
# recorder waits for them itself rather than through unit dependencies.
|
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=mikkeli
|
|
|
|
|
ExecStart=/usr/local/bin/yukart-recorder run
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=2
|
|
|
|
|
# /var/lib/yukart/recordings and /run/yukart-recorder, created and chowned by systemd.
|
|
|
|
|
StateDirectory=yukart/recordings
|
|
|
|
|
RuntimeDirectory=yukart-recorder
|
|
|
|
|
# Shutdown closes the session and fsyncs; seconds at most, but never cut it short.
|
|
|
|
|
TimeoutStopSec=20
|
|
|
|
|
KillSignal=SIGTERM
|
|
|
|
|
Nice=-5
|
|
|
|
|
IOSchedulingClass=best-effort
|
|
|
|
|
IOSchedulingPriority=0
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|