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

2014-08-28 Thread Chris Tapp
On 27 Aug 2014, at 08:46, Sven Ebenfeld sven.ebenf...@gmail.com wrote: Am 26.08.2014 22:51, schrieb Chris Tapp: On 26 Aug 2014, at 21:02, Sven Ebenfeld sven.ebenf...@gmail.com wrote: You should look at ConditionPathExists= Options of systemd-units. Thanks, that looks like it would

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

2014-08-28 Thread Sven Ebenfeld
Am 28.08.2014 18:57, schrieb Chris Tapp: On 27 Aug 2014, at 08:46, Sven Ebenfeld sven.ebenf...@gmail.com wrote: Am 26.08.2014 22:51, schrieb Chris Tapp: On 26 Aug 2014, at 21:02, Sven Ebenfeld sven.ebenf...@gmail.com wrote: You should look at ConditionPathExists= Options of systemd-units.

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

2014-08-28 Thread Chris Tapp
On 28 Aug 2014, at 20:51, Sven Ebenfeld sven.ebenf...@gmail.com wrote: Am 28.08.2014 18:57, schrieb Chris Tapp: On 27 Aug 2014, at 08:46, Sven Ebenfeld sven.ebenf...@gmail.com wrote: Am 26.08.2014 22:51, schrieb Chris Tapp: On 26 Aug 2014, at 21:02, Sven Ebenfeld sven.ebenf...@gmail.com

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

2014-08-27 Thread Sven Ebenfeld
Am 26.08.2014 22:51, schrieb Chris Tapp: On 26 Aug 2014, at 21:02, Sven Ebenfeld sven.ebenf...@gmail.com wrote: You should look at ConditionPathExists= Options of systemd-units. Thanks, that looks like it would do the job. I was hoping not to hard code paths as they may change if a

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

2014-08-26 Thread Chris Tapp
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

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

2014-08-26 Thread Sven Ebenfeld
You should look at ConditionPathExists= Options of systemd-units. Otherwise if udev is loading your device module, you could add the device-unit to Requires= option. Am 26.08.2014 21:52, schrieb Chris Tapp: I've got a service running under systemd that will only start once a kernel module has

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

2014-08-26 Thread Khem Raj
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

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

2014-08-26 Thread Chris Tapp
On 26 Aug 2014, at 21:02, Sven Ebenfeld sven.ebenf...@gmail.com wrote: You should look at ConditionPathExists= Options of systemd-units. Thanks, that looks like it would do the job. I was hoping not to hard code paths as they may change if a configuration file is changed, but... Otherwise