Hi, We try the case of setting up rc.local to run a gstreamer pipeline. Please take a look at
Not exactly fit your usecase but you may give it a try.