Yes,

That would fork the process off and put it in the background, and you do
not want to do that.

        Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)

Products from RRR Scandinavia (Best R.O.I. Award at WWRUG10/11):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.

> So what you are saying is that the & sign below is what may be causing the
> problem?
>
> ${REMEDY_INSTALL_DIR}/aie/service/bin/aie -y
> ${REMEDY_INSTALL_DIR}/aie/service -n "<name of aie instance goes here>" -p
> "0" $1 $2 $3 $4 $5 $6 &
>
> Thanks,
>
> Sean
>
>
> -----Original Message-----
> From: Action Request System discussion list(ARSList)
> [mailto:[email protected]] On Behalf Of Misi Mladoniczky
> Sent: Monday, May 21, 2012 10:07 AM
> To: [email protected]
> Subject: Re: Scripting a process to run under armonitor ....
>
> Hi,
>
> If you create a normal unix daemon process, it will fork off and then exit
> the initial process. This is not how ARMoniotor expects the processes to
> work.
>
> The armonitor process should NOT exit unless it dies. Just keep your
> process running, and ARMonitor will know when it dies.
>
> The 4 x restarts are time based, and it only stops to restart your process
> if it dies 4 times within some kind of time interval. So if your process
> dies every 1 hour or so, it will be restarted indefinitely.
>
> If you want to run something at an interval. Look at cron or Escalations
> instead.
>
>         Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)
>
> Products from RRR Scandinavia (Best R.O.I. Award at WWRUG10/11):
> * RRR|License - Not enough Remedy licenses? Save money by optimizing.
> * RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
> Find these products, and many free tools and utilities, at http://rrr.se.
>
>> Hello Listers,
>>
>> I already searched the archives and couldn't find it.  Just wondering
>> if someone could point me in the right direction ...
>>
>> Has anyone ever attempted to add a process to armonitor (the aie
>> process comes to mind)?  If so how do I script for it so that it works
>> via armonitor?
>>
>>
>> We are on ARS 7.5 patch 6
>> Red Hat 4
>> Oracle 11g
>> WebLogic 10 for Mid-Tier
>>
>> My thinking is to try and follow what was done in the AREmail process
>> (emaild.sh) but I saw this line which I don't think is available for
>> AIE ...
>>
>> ${JAVA_BIN}/java -Djava.library.path=${InstallPath} -cp ${CP_PATH} \
>>                   com.bmc.arsys.emaildaemon.AdminAgent -port
>> ${RMIPort} ping >${InstallPath}/emaild.stat
>>
>> It is my understanding armonitor attempts to restart a process for ~4
>> times and then no longer attempts to start it.  The part I can't
>> figure out is how does it know your process is running?  Wondering if
>> the above java process has something to do with it.
>>
>> I tried this a few years ago and armonitor just spawned the same
>> process over and over again.  Don't want to repeat the same mistakes
>> again.
>>
>> Thanks,
>>
>> Sean
>>
>>
>>
>> ______________________________________________________________________
>> _________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"
>>
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug12
> www.wwrug12.com ARSList: "Where the Answers Are"
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

Reply via email to