[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tru64-unix-managers
Subject:    rc3.d started program does not "stick"
From:       Guy Dallaire <dallaire () total ! net>
Date:       1996-09-30 12:57:04
[Download RAW message or body]

Hello,

I have a program here that must be started after my Oracle Databases are
started. This program (called xfano) is in charge of monitoring and logging
errors from our custom database applications.

Here is what I did:

1) Created a file called 'fano' that I placed in /sbin/init.d
2) Put a symlink from rc3.d called S98xfano, pointing to ../init.d/xfano, this
   way, it's gonna be the last script executed.

   Here's the content of that file (NOTE: It is a bourne script):

   #!/bin/sh
   su - lpfano -c "/u01/outils/xfano.ksh > /dev/null 2>&1"

3) Now, here is a simplified version (without the environment variables needed
   for the xfano program) of the xfano.ksh script:

   #!/bin/ksh
   
   # Set environment variables here....

   # Start the program in the background

   nohup /u01/outils/xfano > /dev/null 2>&1 &

Now the problems:

The xfano program does not run for long before it dies. I know it starts but
it seems that as soon as the system transition to runl level 3 is completed,
it dies. I put a nohup and it did not work, I placed nohups everywhere and I
tried A LOT of possibilities and the program won't "stick".

For now, all I can do is start /sbin/init.d/fano by hand. This way, the
program does not die. I also tried to remove xfano.ksh and place it's
content in the 'fano' script. That did not work, anyway, I would like to
keep the xfano.ksh script because the devlopment team must be able to change
it from time to time...

Am I missing something ? I'm stuck. Any help would be appreciated. I think
someone here on another project had similar problems when he used KORN shell
scripts as part of the startup procedure but he left for a better life so I
can't ask him for help....

                                        Thanks !

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic