From: Maxim.Savrilov@socenter.ru
To: community@altlinux.ru
Subject: Re: [Comm] Как мониторить процесы???
Date: Sat, 15 Feb 2003 15:06:23 +0600
Message-ID: <20030215150623.0fb79a8d.Maxim.Savrilov@socenter.ru> (raw)
In-Reply-To: <5214124984.20030214151805@transbank.ru>
On Fri, 14 Feb 2003 15:18:05 +0300
Половников Денис <fox@transbank.ru> wrote:
#!/bin/sh
#
#
PATH=/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/contrib/bin:$PATH
SERVER="/bin/server.pl"
PS=`ps uwwwx|grep "server\.pl"|grep -v grep|awk '{printf("%s",$2)}END{printf("\n")}'`
[ `echo $PS | wc -w` -ne 0 ] || {
echo "server.pl not running" ; date
"$SERVER" && {
sleep 5 ; echo Banner Server Started
}
}
в кроне это пускать
перловка эта меня доставала неконтролируемыми падениями
переписал сервак на С - конфетка получилась
> Здравствуйте, community.
>
> Народ подскажите как можно сделать чтоб если процес сдох сервак
> автоматом его пускал опять??? Просто есть игравой сервак который имеет
> привычку неожиданно падать, хочется чтоб после его подения сервак его
> стартовал снова. Зарание спасибо за ответ.
>
> С уважением,
> Половников Денис
>
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community
next prev parent reply other threads:[~2003-02-15 9:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-14 12:18 Половников Денис
2003-02-14 12:26 ` Dmitry E. Oboukhov
2003-02-14 12:35 ` Slava Garelin
2003-02-14 20:19 ` Vitaly Lugovsky
2003-02-15 19:00 ` Slava Garelin
2003-02-14 12:37 ` Serge Polkovnikov
2003-02-15 5:37 ` [Comm] Re[2]: " Evgeny Yugov
2003-02-14 13:04 ` Alexei Bayguzov
2003-02-14 22:14 ` [Comm] " Roman Reshmakov
2003-02-15 9:06 ` Maxim.Savrilov [this message]
2003-02-15 17:32 ` [Comm] " Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030215150623.0fb79a8d.Maxim.Savrilov@socenter.ru \
--to=maxim.savrilov@socenter.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git