mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 22:25:25 +02:00
Removing extra server scripts - now they are only in one spot - org.eclipse.rse.services.dstore/serverruntime
This commit is contained in:
parent
a3d78eb154
commit
e8cd0251b4
5 changed files with 0 additions and 146 deletions
|
@ -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 = <STDIN>;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 [<port> | <low port>-<high port>]\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;
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% org.eclipse.dstore.core.server.ServerLauncher
|
||||
|
|
@ -1 +0,0 @@
|
|||
java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% org.eclipse.dstore.core.server.Server 4033 120000
|
|
@ -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=
|
Loading…
Add table
Reference in a new issue