[yocto] systemd - how do I wait for a driver to load?

Khem Raj raj.khem at gmail.com
Tue Aug 26 13:07:00 PDT 2014


On 14-08-26 20:52:58, Chris Tapp wrote:
> I've got a service running under systemd that will only start once a kernel module has loaded and created its /dev/dvb/adaptor nodes.
> 
> Unfortunately, it doesn't load until after the service has failed and gone into an error state due to too many restarts.
> 
> I could "fix" this by increasing the restart interval, but is there a way of adding a dependancy on the kernel module?

if you module is loaded automatically on boot then dependent service
could use below dependency

After=systemd-modules-load.service

> 
> --
> 
> Chris Tapp
> opensource at keylevel.com
> www.keylevel.com
> 
> 
> 
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list