From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076339121738.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Mon, 30 Sep 1996 12:57:04 +0000 To: tru64-unix-managers Subject: rc3.d started program does not "stick" X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076339121738 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 !