Ros & mavros to start on rpi boot

Hi have a raspberry pi 4b, running ubuntu 20.04, have roscore and mavros working …have run scripts to perform robot actions etc. However have real trouble getting these to run automatically on boot up of RPI… have created the following below… but just doesn’t seem to run on start.

sudo nano /etc/systemd/system/roscore.service

[Unit]
Description=ROS core service
After=network.target

[Service]
Type=simple
ExecStart=/opt/ros/noetic/bin/roscore
Restart=always

[Install]
WantedBy=multi-user.target

sudo nano /etc/systemd/system/mavros.service
[Unit]
Description=MAVROS Service
After=roscore.service

[Service]
ExecStart=/opt/ros/noetic/bin/roslaunch /opt/ros/noetic/share/mavros/launch/apm.launch

[Install]
WantedBy=multi-user.target

i had the same problem, as i added user and ExecStop it worked, try adding
[Service]
Type=simple
User=resp(username)
ExecStop=
ExecReload=

Thank you, will try tonight… are they just left blank??

yes, it worked for me tho. on Ubantu 22.04

Hello. Hope the advice provided earlier helped to resolve your issue. Could you provide details or a link to relevant details on how you got mavros installed on your raspberry pi 4b running ubuntu 20.04?