-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using systemd instead of supervisor #149
Comments
just a heads up. this is already part of the dev branch (together with the pip install change which solves the module not found error) still needs some testing though |
@christiansievers: I'm quite far regarding this change... the only issue is that running omxplayer as non root - (which is mandatory with cvlc - so better to figure out now) is that the image from the omxplayer process is just not visible... maybe you have some ideas and could try out the dev branch... |
that's a lot of changes. I'll have a go when I find the time! |
yeah sorry one thing led to another |
I had a go at the idea to run it via systemd, using the branch you started. It appears the devil is in the details of the video_looper.service file. I noticed two things.
journalctl -fu video_looper
showed of module not found errors. All the info about systemd I found tells me the ExecStart command needs full paths. So just as a test I ran something simpler, and this works fine:So the error lies with
ExecStart=sudo /usr/bin/python3 -u -m Adafruit_Video_Looper.video_looper
. Probably the 2nd half of that line. The examples I found don't use python packages but single python script files. I don't know how to link to the package./usr/local/lib/python3.7/dist-packages/Adafruit_Video_Looper.video_looper
doesn't seem to work. And it may install somewhere else on another system.After=getty.target
which tells systemd to run it after the login prompt appears.Just sharing my notes with you, no rush...
The text was updated successfully, but these errors were encountered: