ARK-Electronics / ark_companion_scripts

deprecated, see https://github.com/ARK-Electronics/ARK-OS
MIT License
7 stars 4 forks source link

[services] Bind logloader to mavlink-router #9

Closed dakejahl closed 8 months ago

dakejahl commented 8 months ago

A stop/restart of mavlink-router.service will now cause a stop/restart of logloader.service. It does not however couple the starting of the services, hence we need to start logloader again after flashing the PX4 binary.

See definitions for PartOf and BindsTo https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html

Also added default value for FW_PATH arg in the flash_px4.sh script as well as a check that the file exists.