| | |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | STAFCmd='%s/bin/configure-ds%s' % (dsPath,fileExt) |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/configure-ds%s' % (dsBinPath,fileExt) |
| | | |
| | | if dsPort: |
| | | STAFCmdParamsList.append('-p %s' % dsPort) |
| | |
| | | <location>'%s' % location</location> |
| | | <command>'%s' % STAFCmd</command> |
| | | <parms>'%s' % STAFCmdParams</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <console use="'same'"/> |
| | | <stderr mode="'stdout'"/> |
| | |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | STAFCmd='%s/bin/start-ds%s' % (dsPath,fileExt) |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/start-ds%s' % (dsBinPath,fileExt) |
| | | |
| | | if dsVersion: |
| | | STAFCmdParamsList.append('-v') |
| | |
| | | <location>'%s' % location</location> |
| | | <command>'%s' % STAFCmd</command> |
| | | <parms>'%s' % STAFCmdParams</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <console use="'same'"/> |
| | | <stderr mode="'stdout'"/> |
| | |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | STAFCmd='%s/bin/stop-ds%s' % (dsPath,fileExt) |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/stop-ds%s' % (dsBinPath,fileExt) |
| | | |
| | | if dsHost: |
| | | STAFCmdParamsList.append('-h %s' % dsHost) |
| | |
| | | <location>'%s' % (location)</location> |
| | | <command>'%s' % (STAFCmd)</command> |
| | | <parms>'%s' % (STAFCmdParams)</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | |
| | | |
| | | <sequence> |
| | | <message> |
| | | 'import-ldif%s -l %s -n %s %s' % (fileExt,ldifFile,backEnd,extraParams) |
| | | '%s/import-ldif%s -l %s -n %s %s' % (dsBinPath,fileExt,ldifFile,backEnd,extraParams) |
| | | </message> |
| | | <process name="'Offline Import'"> |
| | | <location>'%s' % location </location> |
| | | <command>'%s/bin/import-ldif%s' % (dsPath,fileExt)</command> |
| | | <command>'%s/import-ldif%s' % (dsBinPath,fileExt)</command> |
| | | <parms>'-l %s -n %s %s' % (ldifFile,backEnd,extraParams)</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | STAFCmd='%s/bin/import-ldif%s' % (dsPath,fileExt) |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/import-ldif%s' % (dsBinPath,fileExt) |
| | | |
| | | if dsLdifFile: |
| | | STAFCmdParamsList.append('-l %s' % dsLdifFile) |
| | |
| | | <location>'%s' % location</location> |
| | | <command>'%s' % STAFCmd</command> |
| | | <parms>'%s' % STAFCmdParams</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | |
| | | </message> |
| | | <process name="'Ldif Export'"> |
| | | <location>'%s' % location </location> |
| | | <command>'%s/bin/export-ldif%s' % (dsPath,fileExt)</command> |
| | | <command>'%s/export-ldif%s' % (dsBinPath,fileExt)</command> |
| | | <parms>'-l %s -n %s %s' % (ldifFile,backEnd,extraParams)</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | |
| | | </message> |
| | | <process name="'Offline Backup'"> |
| | | <location>'%s' % mylocation </location> |
| | | <command>'%s/bin/backup%s' % (dsPath,fileExt)</command> |
| | | <command>'%s/backup%s' % (dsBinPath,fileExt)</command> |
| | | <parms>'-d %s -n %s %s' % (backupDir,backEnd,extraParams)</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | |
| | | </message> |
| | | <process name="'Offline restore'"> |
| | | <location>'%s' % mylocation </location> |
| | | <command>'%s/bin/restore%s' % (dsPath,fileExt)</command> |
| | | <command>'%s/restore%s' % (dsBinPath,fileExt)</command> |
| | | <parms>'-d %s %s' % (backupDir,extraParams)</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | STAFCmd='%s/bin/ldapmodify%s' % (dsPath,fileExt) |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/ldapmodify%s' % (dsBinPath,fileExt) |
| | | |
| | | STAFCmdParamsList.append('-a') |
| | | |
| | |
| | | <location>'%s' % mylocation</location> |
| | | <command>'%s' % STAFCmd</command> |
| | | <parms>'%s' % STAFCmdParams</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stdin>'%s' % dsTaskLdif</stdin> |
| | | <stderr mode="'stdout'"/> |
| | |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | STAFCmd='%s/bin/ldapsearch%s' % (dsPath,fileExt) |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/ldapsearch%s' % (dsBinPath,fileExt) |
| | | |
| | | if dsHost: |
| | | STAFCmdParamsList.append('-h %s' % dsHost) |
| | |
| | | <location>'%s' % mylocation</location> |
| | | <command>'%s' % STAFCmd</command> |
| | | <parms>'%s' % STAFCmdParams</parms> |
| | | <workdir>'%s/bin' % dsPath</workdir> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |