ArduPilot / companion

Companion computer startup scripts and examples
GNU General Public License v3.0
104 stars 164 forks source link

Discussion: consider systemd services for our "daemons" #17

Open peterbarker opened 7 years ago

peterbarker commented 7 years ago

Currently we poke some "autostart" scripts directly into /etc/rc.local.

Modern Linux systems often use systemd services to help ensure startup ordering, restart-on-failure and clean shutdown on system stop.

We should consider using systemd services in place of rc.local. This issue should hold arguments one way and the other so at some stage we can move to them or decide not to based on the balance of the arguments.

Some reasons NOT to move to systemd services:

khancyr commented 7 years ago

I don't think that systemd is harder than rc.local (disclamer : I don't know very much about those things, but I got some experience by using them). It is 4-5 line and give start/stop command ! My main consern is about the presence of systemd on rasberry pi ?