Re: Delaying service start until after hardware installation



Hi,
In order to be a bit more helpful, this function does not work if the image
is unsealing itself, as it only waits if there are known plug and play
installations pending. If the image is currently unsealing, thne it could
have started up our service before the system as got as far as even checking
whether there are new devices. We have made our service dependant on the
spooler service so that it is amongst the last to start up.

Cheers,
John

"John Rose" wrote:

Hi Perro,
We have already tried this. Unfortunately it is not guaranteed to work, and
so gives unpredictable results.

John

"Perro Flaco" wrote:

I hope CMP_WaitNoPendingInstallEvents can help you:
http://msdn2.microsoft.com/en-US/library/ms789525.aspx


On 27 jul, 10:22, John Rose <JohnR...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hi,
I am experiencing a slight problem, and would appreciate any help/guidance
that can be given.

As a quick background:
The XPe image runs from flash card, on a 300MHz Geode processor. The device
also has two NICs.
I have created a standard image that has configured the network settings of
the two NICs (set to DHCP)
We have a service that runs on XPe It reads a configuration file when it
starts, and configures the NICs as per the configuration file (if they are
not already correctly configured). This configuration may include bridging
the two NICs.
This all works correctly, and you can change the configuration to your
heart's content, restart the service and the NICs will be configured
appropriatly.
The problem arrises (sometimes) when you put the flash card into a device
that has slightly different NICs (nominally the same, but they require
hardware installation). It appears that our service attempts to configure the
NICs while they are still being installed by the system. This produces all
sorts of problems with the network setup. This can happen at either first
boot or subsequent boot (We have been in the habit of booting up the image in
the office to check that a flash card is correctly formatted before we send
the it to site.).

The question is this:
does anyone know of a way of checking whether there is a hardware
installation in progress?
Alternately, do they know of a way of delaying a service start until after
any plug and play installations have been completed.

Any other suggestions/comments would be welcome.

Cheers,
John



.



Relevant Pages

  • Make kernel error nr. 1
    ... I get an error when i make the kernel. ... # GENERIC -- Generic kernel configuration file for FreeBSD/i386 ... # To support HyperThreading, HTT is needed in addition to SMP and APIC_IO ... # PCI Ethernet NICs that use the common MII bus controller code. ...
    (freebsd-questions)
  • Re: Internet Woes
    ... Do you have two NICS? ... In my hands the Network Configuration Wizard in Mandrake 9.2 Control ...
    (comp.os.linux.networking)
  • Re: Vista client lost connection to secure wireless network ?
    ... We'll contact Dell to check if they can provide us with some other driver or we will see if we can order Intel NICs and put them in the laptops. ... wireless networks the PC has connected to, with your local wireless at the top. ... The laptop would connect flawlessly to my guest network, but not to the secure network that's configured according to Owen's documentation. ... By "deleting out that Wireless network config for that specific configuation and set it up again" do you mean flattening out the AP configs, the IAS configuration, etc. and redo all that configuration work? ...
    (microsoft.public.windows.server.sbs)
  • Re: Dual-homed SBS *Standard* server wont accept SMTP connections
    ... A default configuration should allow any client on the lan to send to ... stop and start the default SMTP Virtual Server. ... so that we forced both to be listening. ... >>> way to get SMTP to listen on two different NICs on two different IP ...
    (microsoft.public.windows.server.sbs)
  • Re: Both NICs have blank property sheets
    ... Short of installing loopbacks to hold some kind of ip configuration to keep ... > the tech who shuffled the nics in the first instance - thought he would ... > Ethernet adapter Local Area Connection: ... > Connection-specific DNS Suffix. ...
    (microsoft.public.windows.server.sbs)