[asterisk-dev] policy change for correct handling of fatal program conditions

Paul Hewlett paul at gccs.co.za
Wed Jan 24 04:47:28 MST 2007


On Wednesday 24 January 2007 09:42, Paul Hewlett wrote:

> Great - did not realise it was in. To bar asterisk from being killed by the
> oom_killer find the pid of asterisk
>
>      PID=`cat /var/run/asterisk.pid`
>
> and set the oom_adj value to -17
>
A correction - try the following

   PIDS=`pidof asterisk`
   for i in ${PIDS}
   do
      echo "-17" > /proc/$i/oom_adj
   done
-- 
Paul Hewlett  Technical Director 
Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall
Cnr Loxton & Koeberg Roads, 7435 Milnerton
paul at gccs.co.za  www.gccs.co.za
Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906
Gizmo: 1 747 659 6171



More information about the asterisk-dev mailing list