From e8cd0251b41b7ab3670d39ddc9d1ac5c1235f98e Mon Sep 17 00:00:00 2001 From: David Dykstal Date: Wed, 26 Apr 2006 14:25:39 +0000 Subject: [PATCH] Removing extra server scripts - now they are only in one spot - org.eclipse.rse.services.dstore/serverruntime --- .../serverscripts/auth.pl | 57 ------------------- .../serverscripts/daemon.linux | 45 --------------- .../serverscripts/daemon.win.bat | 2 - .../serverscripts/run.win.bat | 1 - .../serverscripts/ssl.properties | 41 ------------- 5 files changed, 146 deletions(-) delete mode 100644 rse/plugins/org.eclipse.dstore.core/serverscripts/auth.pl delete mode 100644 rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.linux delete mode 100644 rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.win.bat delete mode 100644 rse/plugins/org.eclipse.dstore.core/serverscripts/run.win.bat delete mode 100644 rse/plugins/org.eclipse.dstore.core/serverscripts/ssl.properties diff --git a/rse/plugins/org.eclipse.dstore.core/serverscripts/auth.pl b/rse/plugins/org.eclipse.dstore.core/serverscripts/auth.pl deleted file mode 100644 index 6b4f4da569e..00000000000 --- a/rse/plugins/org.eclipse.dstore.core/serverscripts/auth.pl +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/perl -w - -use Shell; - -if (!defined($ARGV[0]) || !defined($ARGV[1]) || !defined($ARGV[2]) || !defined($ARGV[3]) || !defined($ARGV[4])) -{ - print("command usage:\n"); - print("auth.pl USER, PATH, PORT, TIMEOUT, TICKET\n"); -} -else -{ - $userIN = $ARGV[0]; - $pathIN = $ARGV[1]; - $portIN = $ARGV[2]; - $timeoutIN = $ARGV[3]; - $ticketIN = $ARGV[4]; - - $pwdIN = ; - chomp($pwdIN); - - - @passwdStruct = getpwnam($userIN); - - if (@passwdStruct == 0) - { - print("invalid user name\n"); - 0; - } - else - { - $passwd=$passwdStruct[1]; - $encryptedPWD = crypt($pwdIN, $passwd); - $classpath=$ENV{CLASSPATH}; - $suOptions="-lp"; - - if ($passwd eq $encryptedPWD) - { - print("success\n"); - - $os = uname(); - chomp($os); - - if (lc($os) eq "aix") - { - $suOptions="-"; - } - - system("su $suOptions $userIN -c 'java -cp $classpath -DA_PLUGIN_PATH=$pathIN org.eclipse.dstore.core.server.Server $portIN $timeoutIN $ticketIN -Xshareclasses:name=RSE,verbose'"); - 1; - } - else - { - print("incorrect password\n"); - 0; - } - } -} diff --git a/rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.linux b/rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.linux deleted file mode 100644 index 106069603a4..00000000000 --- a/rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.linux +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/perl -w - - -$port = "4035"; -$helpFlag = "-h"; - -if (defined($ARGV[0])) -{ - $port = $ARGV[0]; -} - - -$isHelp = $helpFlag cmp $port; -if ($isHelp == 0) -{ - print("command usage:\n"); - print("daemon.linux [ | -]\n"); - 0; -} -else -{ - $trace = $ENV{DSTORE_TRACING_ON}; - $user=`whoami`; chomp($user); - $match = $user cmp "root"; - - if ($match != 0) - { - print("To run the server daemon, you must be root\n"); - 0; - } - else - { - $dir= $ENV{PWD}; - $plugins_dir=$dir; - - $ENV{A_PLUGIN_PATH}="$plugins_dir/"; - - $oldClasspath = $ENV{CLASSPATH}; - - $ENV{"CLASSPATH"}="$plugins_dir:$plugins_dir/dstore_extra_server.jar:$plugins_dir/dstore_core.jar:$plugins_dir/dstore_miners.jar:$plugins_dir/universalminers.jar:$plugins_dir/clientserver.jar:$oldClasspath"; - - system("java -DA_PLUGIN_PATH=\$A_PLUGIN_PATH -DDSTORE_TRACING_ON=$trace org.eclipse.dstore.core.server.ServerLauncher $port"); - $ENV{CLASSPATH}=$oldClasspath; - } -} diff --git a/rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.win.bat b/rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.win.bat deleted file mode 100644 index 558ae55ecce..00000000000 --- a/rse/plugins/org.eclipse.dstore.core/serverscripts/daemon.win.bat +++ /dev/null @@ -1,2 +0,0 @@ -java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% org.eclipse.dstore.core.server.ServerLauncher - diff --git a/rse/plugins/org.eclipse.dstore.core/serverscripts/run.win.bat b/rse/plugins/org.eclipse.dstore.core/serverscripts/run.win.bat deleted file mode 100644 index e5a5ec92cbb..00000000000 --- a/rse/plugins/org.eclipse.dstore.core/serverscripts/run.win.bat +++ /dev/null @@ -1 +0,0 @@ -java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% org.eclipse.dstore.core.server.Server 4033 120000 \ No newline at end of file diff --git a/rse/plugins/org.eclipse.dstore.core/serverscripts/ssl.properties b/rse/plugins/org.eclipse.dstore.core/serverscripts/ssl.properties deleted file mode 100644 index cf522e0b443..00000000000 --- a/rse/plugins/org.eclipse.dstore.core/serverscripts/ssl.properties +++ /dev/null @@ -1,41 +0,0 @@ -################################################################################ -# Copyright (c) 2006 IBM Corporation. All rights reserved. -# This program and the accompanying materials are made available under the terms -# of the Eclipse Public License v1.0 which accompanies this distribution, and is -# available at http://www.eclipse.org/legal/epl-v10.html -# -# Initial Contributors: -# The following IBM employees contributed to the Remote System Explorer -# component that contains this file: David McKnight, Kushal Munir, -# Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, -# Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. -# -# Contributors: -# {Name} (company) - description of contribution. -################################################################################ - -# -# SSL Security Properties for RSE server and daemon -# - -# Specify this property as true to enable SSL -enable_ssl=false - -################################### -# Daemon Properties -################################### -# The keystore file and password need to be specified for daemon -# to use. -# -#daemon_keystore_file= -#daemon_keystore_password= - -################################### -# Server Properties -################################### -# The keystore file and password need to be specified for the -# server to use. If none is specified, the server falls back -# to use the same keystore and password as the daemon -# -#server_keystore_file= -#server_keystore_password= \ No newline at end of file