[MERGE] win32: use 'net' command for service start/stop operation
authorXavier ALT <xal@openerp.com>
Mon, 7 Jan 2013 17:48:46 +0000 (18:48 +0100)
committerXavier ALT <xal@openerp.com>
Mon, 7 Jan 2013 17:48:46 +0000 (18:48 +0100)
commit475d2ec5b44b1747f207f00fcecf6410856b4148
treef34d01dce645374ed549cccb7034a0c6d35d148e
parentd3348706d9ab3b52e7da7b2d0619603fd941bb4c
parent44d536d40d8886b9673753848aaf68ae526e638b
[MERGE] win32: use 'net' command for service start/stop operation

  * We have to wait for complete service stop before trying to re-start
    OpenERP service, otherwise service manager will complain that the
    service is already running - and thus preventing to it start.
      'sc' command only send a query to service manager without waiting
    for completion - instead we use 'net' command which wait for complete
    start/stop operation.

bzr revid: xal@openerp.com-20130107174846-745eqpvp2lhskspi