ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: Sysadmins@lists.altlinux.org
Subject: [Sysadmins] Monit и штатная остановка сервисов
Date: Fri, 22 Jun 2007 10:49:01 +0400
Message-ID: <467B70DD.5040800@stc.donpac.ru> (raw)

Здравствуйте!

А можно ли уговорить monit уговорить не запускать сервис, если он был 
остановлен штатным образом (не упал с segfault, например) и pid-файла не 
осталось? Написал по аналогии нечто вроде:

# cat /etc/monitrc.d/callweaver
check callweaver with pidfile /var/run/callweaver/callweaver.pid
         if mem > 200.0 MB for 5 cycles then restart
         if cpu > 95% for 5 cycles then restart
         start program = "/etc/init.d/callweaver start"
         stop  program = "/etc/init.d/callweaver stop"

Думал, что раз pidfile упоминается, то monit и должен вести себя 
описанным выше образом, но это не так :(

-- 
С уважением, Прокопьев Евгений


             reply	other threads:[~2007-06-22  6:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22  6:49 Eugene Prokopiev [this message]
2007-06-22  8:52 ` Michael Shigorin
2007-06-22 15:37   ` Eugene Prokopiev
2007-06-22 16:21     ` 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=467B70DD.5040800@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=Sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git