mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ugaston
29.07.2007 45305ff4bdf983803925be2bdb978de955e33b3c
opends/tests/shared/functions/utils.xml
@@ -1495,13 +1495,18 @@
      Kill the ldap server
    </function-prolog>
    <function-map-args>
      <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
      <function-arg-def name="location"
                        type="optional"
                        default="STAF_REMOTE_HOSTNAME">
        <function-arg-description>
          Location of target host
      </function-arg-description>
      <function-arg-property name="type" value="hostname"/>
      </function-arg-def>
      <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
      <function-arg-def name="dsPath"
                        type="optional"
                        default="'%s/%s'
                                 % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
        <function-arg-description>
          Pathname to installation root
        </function-arg-description>
@@ -1516,10 +1521,21 @@
      <script>
        pidPath = '%s/logs/server.pid' % dsPath
        pidFile = open(pidPath, 'r')
        pid = pidFile.readline()[:-1]
        pidFile.close()
        _args = '%s' % pidPath
      </script>
      <call function="'runSTAFCommand'">
        { 'name'      :  'Read server pid file',
          'location'  :  location,
          'service'   :  'FS',
          'request'  :  'GET FILE',
          'arguments' :  _args
        }
      </call>
      <script>
        pid = STAXResult[:-1]
        if isWindows:
          _cmd = 'tskill'
          _args = pid