ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Peter Evdokimov <blackp@vpmes.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Error in the apache2-base postinstall scripts
Date: Tue, 28 Aug 2012 07:46:20 +0400
Message-ID: <20120828074620.38b4abae@blackp.vopmes.mes> (raw)
In-Reply-To: <50369E33.4090804@solin.spb.ru>

On Fri, 24 Aug 2012 01:18:43 +0400
Aleksey Avdeev wrote:

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

У меня похожая проблема:

# ./update_vps.sh 
VPS 102
Get:1 ftp://ftp.altlinux.org i586 release [931B]
Get:2 ftp://ftp.altlinux.org noarch release [725B]
Fetched 1656B in 1s (1576B/s)
Get:1 ftp://ftp.altlinux.org i586/classic pkglist [14.1MB]
Get:2 ftp://ftp.altlinux.org i586/classic release [145B]
Get:3 ftp://ftp.altlinux.org noarch/classic pkglist [2980kB]
Get:4 ftp://ftp.altlinux.org noarch/classic release [147B]
Get:5 ftp://ftp.altlinux.org i586/classic srclist [1474kB]
Fetched 18.5MB in 11s (1599kB/s)
Reading Package Lists...
Building Dependency Tree...
Reading Package Lists...
Building Dependency Tree...
The following packages will be upgraded
  cpp4.5 gcc4.5
2 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Need to get 8229kB of archives.
After unpacking 1600B disk space will be freed.
Get:1 ftp://ftp.altlinux.org i586/classic gcc4.5 4.5.4-alt1 [5130kB]
Get:2 ftp://ftp.altlinux.org i586/classic cpp4.5 4.5.4-alt1 [3099kB]
Fetched 8229kB in 4s (2018kB/s)
Committing changes...
Preparing...                 ##################################################
cpp4.5                       ##################################################
gcc4.5                       ##################################################
Running /usr/lib/rpm/posttrans-filetriggers
Stopping httpd2 service: [ DONE ]
Checking configuration sanity for httpd2:  Syntax OK
[ DONE ]
Starting httpd2 service:   [FAILED]
/usr/lib/rpm/zz-apache2-base.filetrigger failed
error: execution of /usr/lib/rpm/posttrans-filetriggers scriptlet from (null)-(null)-(null) failed, exit status 1
Done.

# rpm -qa|fgrep apache2|sort
apache2-2.2.22-alt8
apache2-base-2.2.22-alt8
apache2-cgi-bin-2.2.22-alt8
apache2-cgi-bin-printenv-2.2.22-alt8
apache2-cgi-bin-test-cgi-2.2.22-alt8
apache2-common-2.2.22-alt8
apache2-datadirs-2.2.22-alt8
apache2-htcacheclean-2.2.22-alt8
apache2-html-2.2.22-alt8
apache2-httpd-prefork-2.2.22-alt8
apache2-httpd-worker-2.2.22-alt8
apache2-icons-2.2.22-alt8
apache2-mod_disk_cache-2.2.22-alt8
apache2-mod_php5-5.3.10.20120202-alt1
seiroswiki-apache2-0.0.1-alt9

systemd нет:
# rpm -qa | fgrep system 
filesystem-2.3.11-alt1

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

# service httpd2 condstop
Stopping httpd2 service:                                                                                                                                                       [ DONE ]
[root@wiki /]# service httpd2 start   
Starting httpd2 service:                                                                                                                                                       [ DONE ]
[root@wiki /]# 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:     


Помогает только ручной стоп и старт с большой задержкой.
Править /etc/init.d/httpd2 ? 


sy,
	peter

  parent reply	other threads:[~2012-08-28  3:46 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
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 [this message]
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=20120828074620.38b4abae@blackp.vopmes.mes \
    --to=blackp@vpmes.ru \
    --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