<div dir="ltr">The ampersand at the end of your cron command puts the process in the background every time the job runs. Furthermore, I believe rc.updatenodelist also deamonizes the process. That's why you have all those process. Steve's post is the correct approach.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 10, 2017 at 6:28 PM, Steve Siesel <span dir="ltr"><<a href="mailto:steve@siesel.net" target="_blank">steve@siesel.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_5996790578465202852WordSection1"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Since there has been an uptick in the chatter here, I need some help!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Last week I noticed that my /var/lib/asterisk/rpt_extnodes hadn’t updated for several days… What mechanism should be making the nodes to update? <u></u><u></u></p><p class="MsoNormal">After searching the list archives I decided to add a cron job to the crontab<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">*/10 * * * * /usr/local/bin/rc.<wbr>updatenodelist &<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">That did seem to work however I have a lot of stale processes when I do a ps –aux<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Lots of this:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">root 32400 0.0 0.2 5032 2812 ? S Jul07 0:04 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32405 0.0 0.0 3640 344 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32417 0.0 0.0 3640 372 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32422 0.0 0.0 3640 364 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32427 0.0 0.0 3640 360 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32432 0.0 0.0 3640 372 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32442 0.0 0.0 3640 364 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32450 0.0 0.2 5028 2812 ? S Jul07 0:04 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32497 0.0 0.0 3640 352 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32501 0.0 0.0 3640 340 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32509 0.0 0.0 3640 352 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32525 0.0 0.2 5028 2812 ? S Jul07 0:04 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32530 0.0 0.2 4952 2736 ? S Jul09 0:02 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32534 0.0 0.0 3640 324 ? S 19:32 0:00 sleep 7200<u></u><u></u></p><p class="MsoNormal">root 32539 0.0 0.0 3640 364 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32542 0.0 0.0 3640 332 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32547 0.0 0.0 3640 372 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32566 0.0 0.0 3640 344 ? S 19:32 0:00 sleep 7200<u></u><u></u></p><p class="MsoNormal">root 32568 0.0 0.2 5012 2796 ? S Jul07 0:04 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32571 0.0 0.0 3640 368 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32574 0.0 0.0 3640 364 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32582 0.0 0.2 5040 2816 ? S Jul06 0:05 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32589 0.0 0.2 4876 2660 ? S 19:20 0:00 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32608 0.0 0.0 3640 376 ? S 19:32 0:00 sleep 7200<u></u><u></u></p><p class="MsoNormal">root 32615 0.0 0.0 3640 368 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32620 0.0 0.0 3640 324 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32625 0.0 0.0 3640 332 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32633 0.0 0.0 3640 344 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32634 0.0 0.2 5032 2816 ? S Jul06 0:04 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32635 0.0 0.0 3640 328 ? S 19:32 0:00 sleep 7200<u></u><u></u></p><p class="MsoNormal">root 32674 0.0 0.0 3640 376 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32685 0.0 0.0 3640 364 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32686 0.0 0.2 4956 2740 ? S Jul09 0:02 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32691 0.0 0.0 3640 332 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32696 0.0 0.0 3640 364 ? S 21:24 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32702 0.0 0.3 5080 2864 ? S Jul05 0:06 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32725 0.0 0.0 3640 356 ? S 21:25 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32731 0.0 0.0 3640 364 ? S 21:25 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal">root 32766 0.0 0.2 4920 2756 ? S 00:20 0:01 /bin/bash /usr/local/bin/rc.updat<u></u><u></u></p><p class="MsoNormal">root 32767 0.0 0.0 3640 348 ? S 21:25 0:00 sleep 600<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Can someone help me clean this up?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Steve <u></u><u></u></p><p class="MsoNormal">K4KSA<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org">App_rpt-users@lists.<wbr>allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--<br></div><div>Tim</div></div></div></div></div>
</div>