Mailinglist Archive: opensuse (4237 mails)

< Previous Next >
Re: [SLE] RE: Crontab
  • From: C Hamel <vgm2@xxxxxxxxxx>
  • Date: Sun, 1 Aug 2004 22:06:54 -0500
  • Message-id: <200408012206.54758.vgm2@xxxxxxxxxx>
On Sunday 01 August 2004 20:55, Martin wrote:
> Hi experts,
> I have noticed over certain period of time that apmd
> process dies quite often on me so I'm thinking to have
> script executed by cron few times a day to check apmd
> process id is there and if not restart it (I do this
> manually using Yast2 now). Idea seems to be simple but
> I'm not sure what is the best way to find out apmd
> died as ps -aef | grep apmd does not show it but
> /var/run has file. Also what is the best way
> to configure cron to do this job.
> Thank you for any help.
> Martin
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
This code may help you get started...
#get pid of <program_name>
tpid=$(/sbin/checkproc -v <program_name>)
if [ "$tpid" != "" ]
Wish I could remember who shared it with me... if said individual sees it,
thanks, once again.

"The more hey over-think the plumbing,
the easier it is to stop up the drain."

< Previous Next >
Follow Ups