On Wednesday 05 September 2012 11:17 PM, Ritesh Raj Sarraf wrote: > On Wednesday 05 September 2012 11:13 PM, Peter Gervai wrote: >> > Upstart works and requires the patch, but as far as I see it's not >> > really upstarty: it closely emulates sysvinit and doesn't do neither >> > event driven runs nor parallel processing, so no surprise here. >> > >> > For systemd I have to pull up to sid the test system... > The current init script will show you no difference even when run with > systemd. What you need is to write a systemd .service for open-iscsi > that should honor events and call helper applications (in this case > vgchange).
By the current explanation of 'settle' command in the manpage, ideally it should wait. But it does not. udevadm settle [options] Watches the udev event queue, and exits if all current events are handled. --timeout=seconds Maximum number of seconds to wait for the event queue to become empty. The default value is 120 seconds. A value of 0 will check if the queue is empty and always return immediately. Now, we don't call it with any value, which would mean that it waits for 120 seconds, which I doubt happens. Either the manpage is outdated or else settle is run quick before the queue even gets populated. Does keeping a sleep of 3 or 4 seconds in between starttargets() and 'udevadm settle' help? -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
signature.asc
Description: OpenPGP digital signature