[FIX] win32: use 'net' command for service start/stop operation
authorXavier ALT <xal@openerp.com>
Mon, 7 Jan 2013 16:23:02 +0000 (17:23 +0100)
committerXavier ALT <xal@openerp.com>
Mon, 7 Jan 2013 16:23:02 +0000 (17:23 +0100)
commit44d536d40d8886b9673753848aaf68ae526e638b
treea714cfa9424b586204ae4f5af540a95e40394640
parentd0153b4df66246aefbc7f2c5bea6f80598769ab2
[FIX] 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-20130107162302-xtf44nm10859203w
openerp/service/__init__.py