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 apmd.pid 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! http://promotions.yahoo.com/new_mail
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 apmd.pid 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! http://promotions.yahoo.com/new_mail This code may help you get started... == #!/bin/sh #get pid of
tpid=$(/sbin/checkproc -v ) if [ "$tpid" != "" ]
On Sunday 01 August 2004 20:55, Martin wrote: then your_code_goes_here == Wish I could remember who shared it with me... if said individual sees it, thanks, once again. HTH... -- ...CH "The more hey over-think the plumbing, the easier it is to stop up the drain." Scotty
This code may help you get started... == #!/bin/sh #get pid of
tpid=$(/sbin/checkproc -v ) if [ "$tpid" != "" ] then your_code_goes_here == Wish I could remember who shared it with me... if said individual sees it, thanks, once again. HTH...
Thank you, I used it and it works. I have added line to /etc/crontab as well and cron restarted apmd after I stopped it. This runs under root though so i'm wondering what should I modify with respect to cron to run above script or any other under my account. Martin __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
On Monday 02 August 2004 19:21, Martin wrote: <SNIP>
Thank you, I used it and it works. I have added line to /etc/crontab as well and cron restarted apmd after I stopped it. This runs under root though so i'm wondering what should I modify with respect to cron to run above script or any other under my account.
Martin
Good show. :-) One can use kcron to set up all sorts of categories of cron jobs. I think it is in the kdeadmin rpm. -- ...CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty
participants (2)
-
C Hamel
-
Martin