ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Adzhubey <iadzhubey@rics.bwh.harvard.edu>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Error in the apache2-base postinstall scripts
Date: Thu, 23 Aug 2012 18:03:03 -0400
Message-ID: <1606163.3x9NZ8HQJs@ika.bwh.harvard.edu> (raw)
In-Reply-To: <50369E33.4090804@solin.spb.ru>

On Friday 24 August 2012 01:18:43 Aleksey Avdeev wrote:
> > Eto nabludaetsa poslednie paru nedel'... za eto vremja v Sisyphe bylo 3
> > ili 4 obnovlenija apache2.
> > 
> >>   Прошу прислать отладочный вывод (при запущенном httpd2):
> >> sh -x service httpd2 condrestart
> > 
> > # sh -x service httpd2 condrestart
> > + PATH=/sbin:/usr/sbin:/bin:/usr/bin
> > + export PATH
> > + VERSION='service version 0.91-alt'
> > + SERVICEDIR=/etc/init.d
> > + SYSTEMCTL=/bin/systemctl
> > + SYSTEMD_SERVICE_DIR=/lib/systemd/system
>                         ^^^^^^^^^^^^
> > + SYSTEMD_CGROUP_DIR=/sys/fs/cgroup/systemd
> > + SERVICE=
> > + OPTIONS=
> > + systemd_status=
> > + '[' 2 -eq 0 ']'
> > + '[' 2 -eq 2 -a condrestart = --full-restart ']'
> > + case "$1" in
> > + SERVICE=httpd2
> > + shift
> > + check_service
> > + '[' -n httpd2 ']'
> > + '[' -x /etc/init.d/httpd2 ']'
> > + return 0
> > + cd /
> > + systemd_is_active
> > + '[' -z '' ']'
> > + '[' -x /bin/systemctl -a -d /sys/fs/cgroup/systemd ']'
> > + systemd_status=1
> > + return 1
> > + exec /etc/init.d/httpd2 condrestart
> > Stopping httpd2 service:
> > [ DONE ]
> > Checking configuration sanity for httpd2:  Syntax OK
> > [ DONE ]
> > Starting httpd2 service:
> > [FAILED]
> 
>   Я правильно понял, что вы используете systemd? Предупреждать же надо!!!

Понятия не имею, что я использую. Кроме периодических apt-get dist-upgrade я 
никаких телодвижений не совершал. А что такое systemd я вообще не в курсе. 
Встречал в рассылке упоминание и не более.

>   Я пытался что-то понять в /etc/init.d/httpd2 копаясь, а раз у вас
> systemd, то засада скорее всего в /lib/systemd/system/httpd2.service
> 
>   Прошу в /lib/systemd/system/httpd2.service заменить строку
> 
> ExecStop=/usr/sbin/apachectl2 stop
> 
> на
> 
> ExecStop=/usr/sbin/apachectl2 wait-stop
> 
> и очередной раз проверить (при запущенном httpd2):
> 
> service httpd2 condrestart
> 
> PS: apachectl2 wait-stop ожидает фактического завершения httpd2. (Не 0
> возвращает только если httpd2 не завершился за 300 секунд.)

Замена на wait-stop помогла:

# service httpd2 condrestart
Stopping httpd2 service:                                                                                                    
[ DONE ]
Checking configuration sanity for httpd2:  Syntax OK	[ DONE ]
Starting httpd2 service:	[ DONE ]

--Ivan


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

  reply	other threads:[~2012-08-23 22:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 18:14 Ivan Adzhubey
2012-08-23 20:09 ` Aleksey Avdeev
2012-08-23 20:21   ` Ivan Adzhubey
2012-08-23 20:39     ` Aleksey Avdeev
2012-08-23 20:53       ` Ivan Adzhubey
2012-08-23 21:18         ` Aleksey Avdeev
2012-08-23 22:03           ` Ivan Adzhubey [this message]
2012-08-23 22:16             ` Aleksey Avdeev
2012-08-24  4:36               ` Aleksey Avdeev
2012-08-24  3:46             ` REAL
2012-08-28  3:46           ` Peter Evdokimov
2012-09-10 11:12             ` Aleksey Avdeev
2012-09-11  9:08               ` Peter Evdokimov
2012-09-11 19:18                 ` Aleksey Avdeev
2012-09-12  4:15                   ` Peter Evdokimov
2012-09-12 16:10                     ` Aleksey Avdeev
2012-09-13  3:29                       ` Peter Evdokimov
2012-09-13  8:37                         ` Aleksey Avdeev
2012-09-17  3:49                           ` Peter Evdokimov
2012-09-11  9:10               ` Peter Evdokimov
2012-09-11 16:59                 ` Aleksey Avdeev
2012-09-12  4:12                   ` Peter Evdokimov

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=1606163.3x9NZ8HQJs@ika.bwh.harvard.edu \
    --to=iadzhubey@rics.bwh.harvard.edu \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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