summaryrefslogtreecommitdiffstats
path: root/base/setup
diff options
context:
space:
mode:
Diffstat (limited to 'base/setup')
-rw-r--r--base/setup/CMakeLists.txt1
-rwxr-xr-xbase/setup/pki111
2 files changed, 0 insertions, 112 deletions
diff --git a/base/setup/CMakeLists.txt b/base/setup/CMakeLists.txt
index 54fe3b7f6..05f18332d 100644
--- a/base/setup/CMakeLists.txt
+++ b/base/setup/CMakeLists.txt
@@ -2,7 +2,6 @@ project(setup)
install(
FILES
- pki
pkicreate
pkiremove
pki-setup-proxy
diff --git a/base/setup/pki b/base/setup/pki
deleted file mode 100755
index 4b9432fa0..000000000
--- a/base/setup/pki
+++ /dev/null
@@ -1,111 +0,0 @@
-#!/usr/bin/perl
-# --- BEGIN COPYRIGHT BLOCK ---
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor,
-# Boston, MA 02110-1301 USA
-#
-# Copyright (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# --- END COPYRIGHT BLOCK ---
-
-###############################################################################
-## (1) Specify variables used by this script. ##
-###############################################################################
-
-my $PRODUCT="pki";
-my $libpath="";
-
-
-###############################################################################
-## (2) Define helper functions. ##
-###############################################################################
-
-sub invalid_architecture()
-{
- print "\n";
- print "ERROR: pki does not execute on this architecture\n";
- print "ERROR: check to make sure pki-tools package is installed!\n";
- print "\n";
-}
-
-
-###############################################################################
-## (3) Set the LD_LIBRARY_PATH environment variable ##
-## (as well as the ${libpath} java property) to determine the ##
-## search order this command uses to find shared libraries. ##
-###############################################################################
-
-my $ARCHITECTURE=`uname -i`;
-chop( $ARCHITECTURE );
-
-if( $ARCHITECTURE eq "i386" ) {
- $libpath="/usr/lib";
-
- $ENV{LD_LIBRARY_PATH} = "/usr/lib/jss:"
- . "/usr/lib:/lib";
-} elsif($ARCHITECTURE eq "x86_64") {
- $libpath="/usr/lib64";
-
- $ENV{LD_LIBRARY_PATH} = "/usr/lib64/jss:"
- . "/usr/lib64:/lib64:"
- . "/usr/lib/jss:"
- . "/usr/lib:/lib";
-} else {
- invalid_architecture();
- exit(255);
-}
-
-
-###############################################################################
-## (4) Set the CP environment variable to determine the search ##
-## order this command wrapper uses to find jar files. ##
-###############################################################################
-
-$ENV{CLASSPATH} = "/usr/share/java/${PRODUCT}/pki-certsrv.jar:"
- . "/usr/share/java/${PRODUCT}/pki-client.jar:"
- . "/usr/share/java/${PRODUCT}/pki-nsutil.jar:"
- . "/usr/share/java/apache-commons-cli.jar:"
- . "/usr/share/java/apache-commons-codec.jar:"
- . "/usr/share/java/apache-commons-lang.jar:"
- . "/usr/share/java/apache-commons-logging.jar:"
- . "/usr/share/java/commons-httpclient.jar:"
- . "/usr/share/java/httpcomponents/httpclient.jar:"
- . "/usr/share/java/httpcomponents/httpcore.jar:"
- . "/usr/share/java/jaxb-api.jar:"
- . "/usr/share/java/resteasy/jaxrs-api.jar:"
- . "/usr/share/java/resteasy/resteasy-atom-provider.jar:"
- . "/usr/share/java/resteasy/resteasy-jaxb-provider.jar:"
- . "/usr/share/java/resteasy/resteasy-jaxrs.jar:"
- . "/usr/share/java/servlet.jar:";
-
-if( $ARCHITECTURE eq "x86_64" ) {
- $ENV{CLASSPATH} = $ENV{CLASSPATH}
- . "/usr/lib64/java/jss4.jar:"
- . "/usr/lib/java/jss4.jar:";
-} else {
- $ENV{CLASSPATH} = $ENV{CLASSPATH}
- . "/usr/lib/java/jss4.jar:";
-}
-
-
-###############################################################################
-## (5) Execute the java command specified by this java command wrapper ##
-## based upon the preset LD_LIBRARY_PATH and CP environment variables. ##
-###############################################################################
-
-my @args = ();
-foreach (@ARGV) {
- push(@args, quotemeta($_));
-}
-
-system("java -cp $ENV{CLASSPATH} com.netscape.cms.client.cli.MainCLI @args");
an>, hangcheck_parse_tick); __setup("hcheck_margin", hangcheck_parse_margin); __setup("hcheck_reboot", hangcheck_parse_reboot); __setup("hcheck_dump_tasks", hangcheck_parse_dump_tasks); #endif /* not MODULE */ #if defined(CONFIG_X86) || defined(CONFIG_X86_64) # define HAVE_MONOTONIC # define TIMER_FREQ 1000000000ULL #elif defined(CONFIG_ARCH_S390) /* FA240000 is 1 Second in the IBM time universe (Page 4-38 Principles of Op for zSeries */ # define TIMER_FREQ 0xFA240000ULL #elif defined(CONFIG_IA64) # define TIMER_FREQ ((unsigned long long)local_cpu_data->itc_freq) #elif defined(CONFIG_PPC64) # define TIMER_FREQ (HZ*loops_per_jiffy) #endif #ifdef HAVE_MONOTONIC extern unsigned long long monotonic_clock(void); #else static inline unsigned long long monotonic_clock(void) { # ifdef __s390__ /* returns the TOD. see 4-38 Principles of Op of zSeries */ return get_clock(); # else return get_cycles(); # endif /* __s390__ */ } #endif /* HAVE_MONOTONIC */ /* Last time scheduled */ static unsigned long long hangcheck_tsc, hangcheck_tsc_margin; static void hangcheck_fire(unsigned long); static struct timer_list hangcheck_ticktock = TIMER_INITIALIZER(hangcheck_fire, 0, 0); static void hangcheck_fire(unsigned long data) { unsigned long long cur_tsc, tsc_diff; cur_tsc = monotonic_clock(); if (cur_tsc > hangcheck_tsc) tsc_diff = cur_tsc - hangcheck_tsc; else tsc_diff = (cur_tsc + (~0ULL - hangcheck_tsc)); /* or something */ if (tsc_diff > hangcheck_tsc_margin) { if (hangcheck_dump_tasks) { printk(KERN_CRIT "Hangcheck: Task state:\n"); #ifdef CONFIG_MAGIC_SYSRQ handle_sysrq('t', NULL, NULL); #endif /* CONFIG_MAGIC_SYSRQ */ } if (hangcheck_reboot) { printk(KERN_CRIT "Hangcheck: hangcheck is restarting the machine.\n"); emergency_restart(); } else { printk(KERN_CRIT "Hangcheck: hangcheck value past margin!\n"); } } mod_timer(&hangcheck_ticktock, jiffies + (hangcheck_tick*HZ)); hangcheck_tsc = monotonic_clock(); } static int __init hangcheck_init(void) { printk("Hangcheck: starting hangcheck timer %s (tick is %d seconds, margin is %d seconds).\n", VERSION_STR, hangcheck_tick, hangcheck_margin); #if defined (HAVE_MONOTONIC) printk("Hangcheck: Using monotonic_clock().\n"); #elif defined(__s390__) printk("Hangcheck: Using TOD.\n"); #else printk("Hangcheck: Using get_cycles().\n"); #endif /* HAVE_MONOTONIC */ hangcheck_tsc_margin = (unsigned long long)(hangcheck_margin + hangcheck_tick); hangcheck_tsc_margin *= (unsigned long long)TIMER_FREQ; hangcheck_tsc = monotonic_clock(); mod_timer(&hangcheck_ticktock, jiffies + (hangcheck_tick*HZ)); return 0; } static void __exit hangcheck_exit(void) { del_timer_sync(&hangcheck_ticktock); printk("Hangcheck: Stopped hangcheck timer.\n"); } module_init(hangcheck_init); module_exit(hangcheck_exit);