ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: Sysadmins@lists.altlinux.org
Subject: [Sysadmins] Остановка сервисов
Date: Fri, 17 Aug 2007 17:31:38 +0400
Message-ID: <46C5A33A.1080506@stc.donpac.ru> (raw)

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

# grep chkconfig /etc/init.d/drbd
# chkconfig: 345 70 8

# grep chkconfig /etc/init.d/had
# chkconfig: 345 75 05

# find /etc/rc.d/rc*.d/ -name *drbd
/etc/rc.d/rc0.d/K08drbd
/etc/rc.d/rc1.d/K08drbd
/etc/rc.d/rc2.d/K08drbd
/etc/rc.d/rc3.d/S70drbd
/etc/rc.d/rc4.d/S70drbd
/etc/rc.d/rc5.d/S70drbd
/etc/rc.d/rc6.d/K08drbd

# find /etc/rc.d/rc*.d/ -name *had
/etc/rc.d/rc0.d/K05had
/etc/rc.d/rc1.d/K05had
/etc/rc.d/rc2.d/K05had
/etc/rc.d/rc3.d/S75had
/etc/rc.d/rc4.d/S75had
/etc/rc.d/rc5.d/S75had
/etc/rc.d/rc6.d/K05had

А вот лог перезагрузки системы:

# head -n 40 /var/log/syslog/console
Aug 17 17:19:26 ewsd3-node1 shutdown[6931]: shutting down for system reboot
Aug 17 17:19:26 ewsd3-node1 init: Switching to runlevel: 6
Aug 17 17:19:27 ewsd3-node1 sshd[4337]: Received signal 15; terminating.
Aug 17 17:19:27 ewsd3-node1 sshd: sshd shutdown succeeded
Aug 17 17:19:27 ewsd3-node1 postfix/postfix-script: stopping the Postfix 
mail system
Aug 17 17:19:27 ewsd3-node1 postfix/master[4651]: terminating on signal 15
Aug 17 17:19:27 ewsd3-node1 postfix: Shutting down postfix: succeeded
Aug 17 17:19:27 ewsd3-node1 crond: crond shutdown succeeded
Aug 17 17:19:27 ewsd3-node1 ntpd[4672]: dispatch_imsg in main: pipe closed
Aug 17 17:19:27 ewsd3-node1 ntpd[4672]: Terminating
Aug 17 17:19:27 ewsd3-node1 ntpd: ntpd shutdown succeeded
Aug 17 17:19:28 ewsd3-node1 acpid: acpid shutdown succeeded
Aug 17 17:19:28 ewsd3-node1 rc: Stopping keytable: succeeded
Aug 17 17:19:28 ewsd3-node1 rc: Stopping fbsetfont: succeeded
Aug 17 17:19:28 ewsd3-node1 dd: 1+0 records in
Aug 17 17:19:28 ewsd3-node1 dd: 1+0 records out
Aug 17 17:19:28 ewsd3-node1 dd: 512 bytes (512 B) copied, 0.000235 
seconds, 2.2 MB/s
Aug 17 17:19:28 ewsd3-node1 random: Saving random seed: succeeded
Aug 17 17:19:28 ewsd3-node1 network: Computing interface groups:
Aug 17 17:19:28 ewsd3-node1 network: .
Aug 17 17:19:28 ewsd3-node1 network: .. 3 interfaces found
Aug 17 17:19:28 ewsd3-node1 network: Processing /etc/net/vlantab: empty.
Aug 17 17:19:28 ewsd3-node1 network: Stopping group 1/realphys (2 
interfaces)
Aug 17 17:19:28 ewsd3-node1 network: ^IStopping eth0:
Aug 17 17:19:28 ewsd3-node1 network: .
Aug 17 17:19:29 ewsd3-node1 last message repeated 2 times
Aug 17 17:19:29 ewsd3-node1 network: OK
Aug 17 17:19:29 ewsd3-node1 network: ^IStopping eth1:
Aug 17 17:19:29 ewsd3-node1 network: .
Aug 17 17:19:29 ewsd3-node1 network: .
Aug 17 17:19:29 ewsd3-node1 network: OK
Aug 17 17:19:29 ewsd3-node1 network: Stopping group 0/virtual (1 interfaces)
Aug 17 17:19:29 ewsd3-node1 network: ^IStopping lo:
Aug 17 17:19:29 ewsd3-node1 network: .
Aug 17 17:19:29 ewsd3-node1 network: OK
Aug 17 17:19:29 ewsd3-node1 rc: Stopping network: succeeded
Aug 17 17:19:29 ewsd3-node1 udevd: udevd shutdown succeeded
Aug 17 17:19:29 ewsd3-node1 kernel: Kernel logging (proc) stopped.
Aug 17 17:19:29 ewsd3-node1 kernel: Kernel log daemon terminating.
Aug 17 17:19:30 ewsd3-node1 klogd: klogd shutdown succeeded

Остановки had и drbd здесь не видно, и она действительно не происходит, 
отчего потом при загрузке приключаются проблемы.

В этот лог попадает не все, что видно при перезагрузке по F12, хотя:

# tail -n 2 /etc/syslog.conf
# Log all to the file.
*.* 
/var/log/syslog/console

По F12 видно, например, что сервис had не останавливается до самого 
конца, ругаясь на постепенно исчезающую сеть.

Вопрос: почему могут не вызываться service had/drbd stop при выключении 
и перезагрузке? Вызванные вручную, они замечательно отрабатывают и пишут 
об этом в лог.

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



             reply	other threads:[~2007-08-17 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17 13:31 Eugene Prokopiev [this message]
2007-08-17 13:56 ` Eugene Prokopiev

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=46C5A33A.1080506@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