| | |
| | | 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> |
| | |
| | | |
| | | <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 |