I have an application that uses gstreamer to display some video feeds. It runs fine when launched manually. However, when I try to launch as a systemd service at startup I get an error. In the
journalctl output for the service I can see the error: NvRmMemInit failed. Systemd automatically retries to launch the service. The error happens once or twice and then the application eventually runs (though sometimes with no output on the screen).
I have come across this error previously when trying to run the application without being part of the
video group. In my .service file I was sure to specify a user that is part of the
Could this be an ordering problem? Perhaps I need to wait for some other video-related driver or service to load before I can launch my application?
Manually launching the service with
systemctl start works fine (no NvRmMemInit failed error).