# Instructions/documentation needed on how to add new code snippet on voxl-build

Source: https://forum.modalai.com/topic/275/instructions-documentation-needed-on-how-to-add-new-code-snippet-on-voxl-build
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Posted: 2021-06-11 11:15:37 UTC by Gaurav Borade
Replies: 2 · Views: 799

## Gaurav Borade · 2021-06-11 11:15:37 UTC

I am trying to add a new code on top of the existing one.

The use case is: To stream multiple camera streams on Qgroundcontrol after a specific interval.

Progress uptill now: 
I can able to stream camera videos using SSH connection (https://docs.modalai.com/voxl-rtsp/) & using command 
>>voxl-rtsp -c 0 # Stream video from Hi-res Image Sensor
>>voxl-rtsp -c 1 # Stream video from Hi-res Image Sensor
>>voxl-rtsp -c 2 # Stream video from Hi-res Image Sensor

Now, I want to make a script for it, it will auto start the camera stream on the boot & start streaming & switch the streams after every few seconds.

Need help on how to add that code snippet, where to add it etc & any useful links/docs/tutorial/videos will also work.

thank you!

## Reply by Eric Katzfey (ModalAI staff) · 2021-06-11 15:32:38 UTC

Voxl uses systemd for startup. You create a "service" file to implement your desired startup action and place it in the /etc/systemd/system directory. There are lots of guides and documentation on the Internet about how to create systemd service files. You can also look at the service files already on Voxl for some examples.

## Reply by Gaurav Borade · 2021-06-14 05:18:10 UTC

Thank you for your reply, I will definitely try this.
