tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: inittab
@ 2000-11-27 17:42 DGoncalves
  0 siblings, 0 replies; only message in thread
From: DGoncalves @ 2000-11-27 17:42 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-27 17:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-27 17:42 SUMMARY: inittab DGoncalves

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