������, oops maillist !
��� �� ���� �����, ������� ������� ��� Andy Igoshin <[EMAIL PROTECTED]>
��������� ���� �� ������.
����� ������������� � ������ �������� ����������. � ����������������
��� ����� ��� �� �����. :-(
������� �� �������� :-) � ���� oops ��������, �� ����� ��������� �����
������ ��� �������� :-)
================== ������ ���� =======================
#!/bin/bash
OOPS_HOME=/usr/local/oops # Oops home directory
OOPS_NAME=oops # Oops executable file name
OOPS_USER=root # Owner of Oops process
OOPS_WAIT=10 # Time between attempts to restart Oops
OOPS_LOG=$OOPS_HOME/oops.out # Oops log file
OOPS_DB=$OOPS_HOME/DB # Oops DB path
NAME=`/bin/basename $0`
# PG=/bin/pgrep -x $NAME
#PG=`ps ax|grep -i $OOPS_NAME|wc -w`
#echo $PG
COUNT=`ps -u root|grep -c oops`
if [ $COUNT -ne 2 ]; then
echo "$NAME: Oops is already running"
exit 1
fi
cd $OOPS_HOME
i=0
while [ $i -eq 0 ]; do
[ -f $OOPS_HOME/core ] && mv $OOPS_HOME/core $OOPS_HOME/core.`date+"%Y.
# Next string may be needed if you use Oops with db-3.x.x
# rm -f $OOPS_DB/__db.00[147]
echo `date`: Starting Oops >> $OOPS_LOG
echo
$OOPS_HOME/$OOPS_NAME -c $OOPS_HOME/oops.cfg >> $OOPS_LOG 2>&1
[ $i -eq 0 ] && sleep $OOPS_WAIT
done
echo
echo `date`: Stopping $NAME >> $OOPS_LOG
exit 0
==================== ����� ���� =============================
� ���������� �����������,
��������� ������� ��� "������-������"
��������� ���������.
Home page: http://bw-azov.narod.ru
E-mail: [EMAIL PROTECTED]
ICQ: 49510725
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops" in message body.
Archive is accessible on http://www.paco.net/oops/