ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Не останавливаются сервисы при обновлении
Date: Wed, 25 Jan 2012 03:16:14 +0400
Message-ID: <20120124231614.GA3934@altlinux.org> (raw)
In-Reply-To: <4F1F37E9.7000008@tangramltd.com>

[-- Attachment #1: Type: text/plain, Size: 2575 bytes --]

On Tue, Jan 24, 2012 at 05:59:53PM -0500, Dubrovskiy Viacheslav wrote:
> 24.01.2012 16:08, Dmitry V. Levin пишет:
> > Давайте попробуем более чистый эксперимент:
> >
> > # uname -r
> > # service smartd start
> > # apt-get reinstall smartmontools
> > # service smartd status
> > # xargs -i readlink '/proc/{}/exe' < /var/run/smartd.pid
> [root@ca20 slava]# service smartd stop
> Stopping smartd
> service:                                                                                                                                       
> [ DONE ]
> [root@ca20 slava]# uname -a
> Linux ca20.tanhost.com 2.6.32-ovz-el-alt35 #1 SMP Tue Sep 20 12:18:59
> UTC 2011 x86_64 GNU/Linux
> [root@ca20 slava]# service smartd start
> Starting smartd
> service:                                                                                                                                       
> [ DONE ]
> [root@ca20 slava]# apt-get reinstall smartmontools
> Чтение списков пакетов... Завершено
> Построение дерева зависимостей... Завершено
> 0 будет обновлено, 0 новых установлено, 1 пакетов будет переустановлено,
> 0 пакетов будет удалено и 0 не будет обновлено.
> Необходимо получить 0B/267kB архивов.
> После распаковки потребуется дополнительно 0B дискового пространства.
> Продолжить? [Y/n]
> Совершаем изменения...
> Preparing...                                                
> ###################################################################################################
> [100%]
> 1: smartmontools                                            
> ###################################################################################################
> [100%]
> Service smartd is not running.[PASSED]
> Starting smartd service: [ DONE ]
> Running /usr/lib/rpm/posttrans-filetriggers
> Завершено.
> [root@ca20 slava]# service smartd status
> smartd is running
> [root@ca20 slava]# xargs -i readlink '/proc/{}/exe' < /var/run/smartd.pid
> /usr/sbin/smartd
> [root@ca20 slava]# ps aux | grep smartd
> root      896013  0.0  0.0  12092   772 ?        S    00:57   0:00
> /usr/sbin/smartd -p /var/run/smartd.pid
> root      896099  0.0  0.0  12092   772 ?        S    00:57   0:00
> /usr/sbin/smartd -p /var/run/smartd.pid
> root      896152  0.0  0.0   7796   916 pts/0    S+   00:58   0:00 grep
> smartd

Чистого эксперимента не получилось.  Давайте попробуем еще немного:

# service smartd start
# pid=$(cat /var/run/smartd.pid)
# apt-get reinstall smartmontools
# echo "[$(readlink /proc/$pid/exe)]"


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-01-24 23:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 19:24 Dubrovskiy Viacheslav
2012-01-24 19:41 ` Michael Shigorin
2012-01-24 20:04   ` Dubrovskiy Viacheslav
2012-01-24 20:26     ` Dubrovskiy Viacheslav
2012-01-24 21:08       ` Dmitry V. Levin
2012-01-24 22:59         ` Dubrovskiy Viacheslav
2012-01-24 23:16           ` Dmitry V. Levin [this message]
2012-01-24 23:42             ` Dubrovskiy Viacheslav
2012-01-25  0:24               ` Dmitry V. Levin
2012-01-25  0:39                 ` Dmitry V. Levin
2012-01-25  0:47                   ` Dubrovskiy Viacheslav
2012-01-25  1:01                     ` Dmitry V. Levin
2012-01-25  1:31                       ` Dubrovskiy Viacheslav
2012-01-25  1:36                       ` Dubrovskiy Viacheslav
2012-01-25 11:16                       ` Sergey Vlasov
2012-01-25 12:41                         ` 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=20120124231614.GA3934@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=community@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 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