to keep a process alive?
From: google-rambo88 (rambo88_at_gmail.com)
Date: 03/30/05
- Next message: Khaled: "Re: su without password prompt"
- Previous message: George Gleason: "Re: Please Try and Help Terri......"
- Next in thread: Douglas O'Neal: "Re: to keep a process alive?"
- Reply: Douglas O'Neal: "Re: to keep a process alive?"
- Reply: Tony Lawrence: "Re: to keep a process alive?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Mar 2005 00:37:09 +0900
To keep a process alive, I made a simple shell. it'll run rmawatch.sh from
crontab..
If someone have more good method to keep process alive, Could you advice me?
=== rmawatch.sh ========
#!/bin/sh
RMA_PATH=/usr/app/bin
#TTI is process name
PSRMA=`ps aux| grep my_process | awk '{print $2}'`
if [ -z "${PSRMA}" ]
then
${RMA_PATH}/my_process
fi
*********************************************************
crontabl -l
=========================================
0 * * * * /opt/TTIagent/bin/rmawatch.sh > /dev/null 2>&1
Have a day.
- Next message: Khaled: "Re: su without password prompt"
- Previous message: George Gleason: "Re: Please Try and Help Terri......"
- Next in thread: Douglas O'Neal: "Re: to keep a process alive?"
- Reply: Douglas O'Neal: "Re: to keep a process alive?"
- Reply: Tony Lawrence: "Re: to keep a process alive?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|