LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SLES 10 SP2 under z/VM 540 and trying to start IBM EKM software (https://www.linuxquestions.org/questions/linux-newbie-8/sles-10-sp2-under-z-vm-540-and-trying-to-start-ibm-ekm-software-794421/)

rwaters 03-10-2010 07:33 AM

SLES 10 SP2 under z/VM 540 and trying to start IBM EKM software
 
I am able to start Encryption Key Manager manually, but have not been able to start EKM automatically. How would I get EKM to start following a BOOT? Below is my script ekmlaunch.


ekmserv@LINUXEKM:~/keymanager> pwd
/home/ekmserv/keymanager

ekmserv@LINUXEKM:~/keymanager> cat ekmlaunch
#!/bin/bash
java com.ibm.keymanager.EKMLaunch KeymanagerConfig.properties

Thanks,
Ray Waters

jamescondron 03-10-2010 07:38 AM

Depends on what flavour/ distribution of Linux you're using, but you want to be looking at init-scripts. Take a look at
Code:

/etc/rc.local
Which is the BSD way of doing it.

rwaters 03-12-2010 10:13 AM

I tried etc/rc.local and tried etc/init.d/rc.local, and neither executed. I then tried etc/after.locan. It does execute, but does not work in this folder.

Here is my new script after.local:
LINUXEKM:/etc/init.d # cat after.local
#!/bin/bash
#
# Start Enterprise Key Manager (EKM)
#
export CLASSPATH=IBMKeyManagementServer.jar
/opt/ibm/java2-s390x-50/ibm-java2-s390x-50/bin/java -cp IBMKeyManagementServer.jar \
com.ibm.keymanager.EKMLaunch KeymanagerConfig.properties

Here is the VM CONSOLE LOG:
Master Resource Control: Running /etc/init.d/after.local""
SFW2-INext-ACC-TCP IN=eth0 OUT= MAC= SRC=172.16.28.25 DST=172.16.28.63
DPT=3801 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020405B4)
Mar 12 11:09:47 LINUXEKM kernel: ip6_tables: (C) 2000-2006 Netfilter Co
Mar 12 11:09:47 LINUXEKM kernel: ip_tables: (C) 2000-2006 Netfilter Cor
Mar 12 11:09:47 LINUXEKM kernel: Netfilter messages via NETLINK v0.30."
Mar 12 11:09:47 LINUXEKM kernel: ip_conntrack version 2.4 (8192 buckets
The java class is not found: ""
/etc/init.d/after.local: line 7: com.ibm.keymanager.EKMLaunch: command
Ý1A..failedMaster Resource Control: runlevel 3 has been reached""
Skipped services in runlevel 3: "Ý80C"Ý23Dsmbfs nfs splash""
"
"
Welcome to SUSE Linux Enterprise Server 10 SP2 (s390x) - Kernel 2.6.16.
"
"
LINUXEKM login:

If I run this script from /home/ekmserv/keymanager, it works fine and starts up EKM.

What am I missing in my after.local script?

Ray

rwaters 03-12-2010 10:14 AM

Correction, my new script is in /etc/init.d/after.local

Sorry,
Ray


All times are GMT -5. The time now is 01:23 PM.