Files
svc-core/deploy/yukart-recorder.service
T

25 lines
759 B
Desktop File

[Unit]
Description=Yukart recorder: raw CAN and GNSS sessions to disk
Documentation=http://pi5-16:3005/yukart/svc-core
# 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