diff options
Diffstat (limited to 'deprecated-workflow-designer/distribution/src/main/assembly/bin')
5 files changed, 0 insertions, 157 deletions
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat deleted file mode 100644 index 9d129ee5..00000000 --- a/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat +++ /dev/null @@ -1,20 +0,0 @@ -@REM -@REM Copyright (c) 2017 ZTE Corporation. -@REM All rights reserved. This program and the accompanying materials -@REM are made available under the terms of the Eclipse Public License v1.0 -@REM and the Apache License 2.0 which both accompany this distribution, -@REM and are available at http://www.eclipse.org/legal/epl-v10.html -@REM and http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Contributors: -@REM ZTE - initial API and implementation and/or initial documentation -@REM - -echo %1 | findstr %2 >NUL -echo ERRORLEVEL=%ERRORLEVEL% -IF ERRORLEVEL 1 goto findend -for /f "tokens=1" %%a in (%1) do ( - echo kill %1 - taskkill /F /pid %%a -) -:findend
\ No newline at end of file diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat deleted file mode 100644 index 63f3dcd5..00000000 --- a/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat +++ /dev/null @@ -1,37 +0,0 @@ -@REM -@REM Copyright (c) 2017 ZTE Corporation. -@REM All rights reserved. This program and the accompanying materials -@REM are made available under the terms of the Eclipse Public License v1.0 -@REM and the Apache License 2.0 which both accompany this distribution, -@REM and are available at http://www.eclipse.org/legal/epl-v10.html -@REM and http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Contributors: -@REM ZTE - initial API and implementation and/or initial documentation -@REM - -@echo off -title sdc-workflow-designer - -set RUNHOME=%~dp0 -echo ### RUNHOME: %RUNHOME% -echo ### Starting sdc-workflow-designer -set main_path=%RUNHOME%..\ -cd /d %main_path% -set JAVA="%JAVA_HOME%\bin\java.exe" -set port=12345 -set jvm_opts=-Xms50m -Xmx128m -set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n -set class_path=%main_path%;%main_path%sdc-workflow-designer.jar -echo ### jvm_opts: %jvm_opts% -echo ### class_path: %class_path% - -%JAVA% -classpath %class_path% %jvm_opts% org.onap.sdc.workflowdesigner.WorkflowDesignerApp server %main_path%conf/workflow-designer.yml - -IF ERRORLEVEL 1 goto showerror -exit -:showerror -echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check! -echo After checking, press any key to close -pause -exit
\ No newline at end of file diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh deleted file mode 100644 index 05d0dfd8..00000000 --- a/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright (c) 2017 ZTE Corporation. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# and the Apache License 2.0 which both accompany this distribution, -# and are available at http://www.eclipse.org/legal/epl-v10.html -# and http://www.apache.org/licenses/LICENSE-2.0 -# -# Contributors: -# ZTE - initial API and implementation and/or initial documentation -# - -DIRNAME=`dirname $0` -RUNHOME=`cd $DIRNAME/; pwd` -echo @RUNHOME@ $RUNHOME - -echo @JAVA_HOME@ $JAVA_HOME -JAVA="$JAVA_HOME/bin/java" -echo @JAVA@ $JAVA -main_path=$RUNHOME/../ -cd $main_path -JAVA_OPTS="-Xms50m -Xmx128m" -port=12345 -JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n" -echo @JAVA_OPTS@ $JAVA_OPTS - -class_path="$main_path/:$main_path/sdc-workflow-designer.jar" -echo @class_path@ $class_path - -"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.sdc.workflowdesigner.WorkflowDesignerApp server "$main_path/conf/workflow-designer.yml" - diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat deleted file mode 100644 index 974d41b6..00000000 --- a/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat +++ /dev/null @@ -1,30 +0,0 @@ -@REM -@REM Copyright (c) 2017 ZTE Corporation. -@REM All rights reserved. This program and the accompanying materials -@REM are made available under the terms of the Eclipse Public License v1.0 -@REM and the Apache License 2.0 which both accompany this distribution, -@REM and are available at http://www.eclipse.org/legal/epl-v10.html -@REM and http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Contributors: -@REM ZTE - initial API and implementation and/or initial documentation -@REM - -@echo off -title stopping sdc-workflow-designer - -set HOME=%~dp0 -set Main_Class="org.onap.sdc.workflowdesigner.WorkflowDesignerApp" - -echo ================== sdc-workflow-designer info ============================================= -echo HOME=$HOME -echo Main_Class=%Main_Class% -echo =============================================================================== - -echo ### Stopping sdc-workflow-designer -cd /d %HOME% - -for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do ( - call find_kill_process "%%i" %Main_Class% -) -exit
\ No newline at end of file diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh deleted file mode 100644 index 3fe6d60d..00000000 --- a/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh +++ /dev/null @@ -1,39 +0,0 @@ -# -# Copyright (c) 2017 ZTE Corporation. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# and the Apache License 2.0 which both accompany this distribution, -# and are available at http://www.eclipse.org/legal/epl-v10.html -# and http://www.apache.org/licenses/LICENSE-2.0 -# -# Contributors: -# ZTE - initial API and implementation and/or initial documentation -# - -DIRNAME=`dirname $0` -HOME=`cd $DIRNAME/; pwd` -Main_Class="org.onap.sdc.workflowdesigner.WorkflowDesignerApp" - -echo ================== sdc-workflow-designer info ============================================= -echo HOME=$HOME -echo Main_Class=$Main_Class -echo =============================================================================== -cd $HOME; pwd - -echo @WORK_DIR@ $HOME - -function save_service_pid(){ - service_pid=`ps -ef | grep $Main_Class | grep -v grep | awk '{print $2}'` - echo @service_pid@ $service_pid -} - -function kill_service_process(){ - ps -p $service_pid - if [ $? == 0 ]; then - kill -9 $service_pid - fi -} - -save_service_pid; -echo @C_CMD@ kill -9 $service_pid -kill_service_process;
\ No newline at end of file |