# Start .sh script on boot

Source: https://forum.modalai.com/topic/1483/start-sh-script-on-boot
Category: Flight Core and Legacy VOXL (https://forum.modalai.com/category/9/flight-core-and-legacy-voxl)
Tags: voxl
Posted: 2022-10-25 20:15:58 UTC by Henry Cappel
Replies: 2 · Views: 822

## Henry Cappel · 2022-10-25 20:15:58 UTC

Is there a simple way to start a bash script on boot of the device? I'm finding that common linux solutions aren't working on yocto.

Thanks!

## Reply by tom (ModalAI staff) · 2022-10-26 16:48:48 UTC

@Henry-Cappel The easiest way is with a systemd service that lives in `/etc/systemd/system`

If you go to that directory on VOXL you can see a bunch of examples of how we do it.

Once you have a `$SERVICE_NAME.service` file created, you can enable it to run on boot with:
`systemctl enable $SERVICE_NAME`

or disable it from running on boot with
`systemctl disable $SERVICE_NAME`

## Reply by Henry Cappel · 2022-10-26 16:55:14 UTC

Thanks so much!! This is super easy solution
