tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: DGoncalves () americel ! com ! br
To: tru64-unix-managers
Subject: SUMMARY: inittab
Date: Mon, 27 Nov 2000 17:42:34 +0000	[thread overview]
Message-ID: <97534695332714.tru64-unix-managers.marc@archive.invalid> (raw)

Hi all, many thanks for your help. This list is very helpful. Bellow my
original question and the solution:

> Hi Managers,
> 
> 	When I insert an entry in the /etc/inittab file with the respawn
> action it doesn't works because the command needs an environment variable.
> So, when I insert a script with this variable, the respawn action doesn't
> work (if the process dies the system doesn't reactivate). Is there any way
> to make this or only with the crontab???
> 	Thanks a lot,
> 
> Debora.

In the /etc/inittab file:
teste:3:respawn:/home/netfloor/teste-crm/initassinanted2.sh

In my script, I have to put the "exec" before my command, and I have to take
off the BACKGROUND symbol "&":

#!/bin/sh
# Script para inicializacao dos processos NetFloor
#
# Inicialmente, todos os paths estarao hardcoded,
#

echo 'Starting Switch Custumer Access Interface' >
/home/netfloor/teste-crm/teste.log
NETFLOOR_CFG_DIR=/home/netfloor/teste-crm ; export NETFLOOR_CFG_DIR
#exec /home/netfloor/teste-crm/assinanted2 &
exec /home/netfloor/teste-crm/assinanted2 
echo 'done' >> /home/netfloor/teste-crm/teste.log

                 reply	other threads:[~2000-11-27 17:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox