px4 service issue
-
I have an issue with the px4 service where the px4 service starts at stop status on the drone boot. In my short time debugging this I looked at the body of the service and I see it requires another service to end:
[Unit] Description=px4 After=sscrpcd.service Requires=sscrpcd.service [Service] ExecStartPre=/bin/sleep 2 ExecStart=/usr/bin/voxl-px4 Restart=on-failure [Install] WantedBy=multi-user.target
but I can't find this service on the system nor can I find it online.
Am I missing something?
I would love some help with this. -
@giladWDS I'm not sure I understand what you mean by "starts at stop status". Can you explain the issue? And what service can't you find? sscrpcd.service?
voxl2:/$ sudo find . -name sscrpcd.service ./lib/systemd/system/multi-user.target.wants/sscrpcd.service ./lib/systemd/system/sscrpcd.service find: './sys/kernel/slab': Input/output error ./sys/fs/cgroup/pids/system.slice/sscrpcd.service ./sys/fs/cgroup/devices/system.slice/sscrpcd.service ./sys/fs/cgroup/systemd/system.slice/sscrpcd.service ./sys/fs/cgroup/unified/system.slice/sscrpcd.service
-
@Eric-Katzfey
never knew that there are services outside of/etc/systemd/system
andsystemctl status voxl-px4
gives disable. I will bring the full argument as soon as I have access to the machine -
@giladWDS To enable it just enter
systemctl enable voxl-px4
-
@Eric-Katzfey
I did. The issue is that the drone is supposed to be autonomous at the end. and I would like to avoid constantly checking whether the px4 service is alive or not.
from my understanding the service is supposed to be alive on boot so it seems to be a bag that I would want to fix. -
@giladWDS Okay, so the issue is that the service starts but px4 is not actually running? Can you include the output of the command
systemctl status -l voxl-px4
? And alsojournalctl -b -u voxl-px4
?