Date: Thu, 28 Mar 2024 17:35:17 +0300 (MSK) Message-ID: <1269394718.54355.1711636517865@wiki-confluence-0.wiki-confluence.default.svc.cluster.local> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_54354_1488091788.1711636517864" ------=_Part_54354_1488091788.1711636517864 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
aldd
=D0=B8 =D0=BF=D0=B5=D1=80=D0=B5=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B6=D0=B0=
=D0=B5=D1=82 =D0=B5=D0=B3=D0=BE, =D0=B5=D1=81=D0=BB=D0=B8 =D1=8D=D1=82=D0=
=B0 =D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B0 =D0=BF=D1=80=D0=B5=D0=
=B2=D1=8B=D1=88=D0=B0=D0=B5=D1=82 60%.=D0=9D=D1=83=D0=B6=D0=BD=D0=BE =D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=82=D1= =8C =D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82 aldd_restart.sh =D1= =81=D0=BE =D1=81=D0=BB=D0=B5=D0=B4=D1=83=D1=8E=D1=89=D0=B8=D0=BC =D1=82=D0= =B5=D0=BA=D1=81=D1=82=D0=BE=D0=BC =D0=B2 =D0=B4=D0=B8=D1=80=D0=B5=D0= =BA=D1=82=D0=BE=D1=80=D0=B8=D0=B8 /usr/local/bin/
#!/bin/bash cron_script=3D"/etc/cron.d/aldd_check"=20 right_path=3D"/usr/local/bin/aldd_restart.sh"=20 [ $UID -ne 0 ] && echo "You have to be with admin rights!" &&= amp; exit 1 [ -x "/etc/init.d/aldd" ] || { echo "ald is not installed on this compute= r"; exit 1; } if [ ! -f $right_path ] then echo "Put the script to /usr/local/bin/ and run it there!"=20 exit 1 fi if [ -e $cron_script ] then true else echo "*/1 * * * * root $right_path" > $cron_script fi proc_overflow=3D`top -b -n1 | grep aldd | awk '{if ($2=3D=3D"aldd") {prin= t ($9)}}' | awk -F, '{print($1)}'` if [ $proc_overflow -gt 60 ] then sudo /etc/init.d/aldd restart fi
=D0=BD=D0=B0=D0=B2=D0=B5=D1=81=D0=B8=D1=82=D1=8C =D0=B1=D0=B8=D1=82 =D0= =B8=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F =D0=BD=D0=B0 =D1= =81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9 =D1=84=D0=B0=D0=B9=D0= =BB =D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=BE=D0=B9
=D0=9B=D0=B8=D0=B1=D0=BE =D0=BF=D0=BE=D0=BB=D0=BE=D0=B6=D0=B8=D1=82=D1= =8C =D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=BD=D1=8B=D0=B9 =D1= =84=D0=B0=D0=B9=D0=BB =D0=B2 =D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE=D1= =80=D0=B8=D1=8E /usr/local/bin/
=D0=BD=D0=B0=D0=B2=D0=B5=D1=81=D0=B8=D1=82=D1=8C =D0=B1=D0=B8=D1=82 =D0= =B8=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F =D0=BD=D0=B0 =D1= =81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9 =D1=84=D0=B0=D0=B9=D0= =BB =D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=BE=D0=B9