11.09.2012 13:08, Peter Evdokimov пишет: > On Mon, 10 Sep 2012 15:12:22 +0400 > Aleksey Avdeev wrote: > >> Прошу выполнить (и предоставить вывод сюда): >> >> sh -x /etc/init.d/httpd2 condrestart > > 1-ый контейнер openvz > > # sh -x /etc/init.d/httpd2 condrestart > + WITHOUT_RC_COMPAT=1 > + . /etc/init.d/functions > ++ export > PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin > ++ > PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin > ++ '[' 0 = 0 ']' ++ LANG=POSIX ++ LANGUAGE=POSIX > ++ LC_ALL=POSIX > ++ '[' -z '' ']' > ++ SourceIfNotEmpty /etc/sysconfig/init > ++ local f > ++ f=/etc/sysconfig/init > ++ shift > ++ '[' -s /etc/sysconfig/init ']' > ++ . /etc/sysconfig/init > +++ BOOTUP=color > +++ RES_OFFSET=8 > +++ LOGLEVEL=1 > +++ PROMPT=yes > ++ '[' -n color ']' > ++ '[' -x /sbin/consoletype ']' > +++ consoletype > ++ '[' pty = serial ']' > ++ '[' color = color ']' > ++ . /etc/init.d/outformat > +++ '[' -n xterm ']' > +++ export TERM > +++ : 8 > +++ '[' -n 8 ']' > +++ '[' 8 -gt 0 ']' > +++ : 0 1 2 3 4 5 6 7 > ++ '[' color '!=' verbose ']' > ++ INITLOG_ARGS=-q > ++ '[' -n 1 ']' > ++ '[' 1 -ge 0 ']' > ++ '[' -n 1 ']' > + SourceIfExists /etc/sysconfig/httpd2 > + local f > + f=/etc/sysconfig/httpd2 > + shift > + '[' -f /etc/sysconfig/httpd2 ']' > + . /etc/sysconfig/httpd2 > + INITLOG_ARGS= > + name=httpd2 > + moduledir=/usr/lib/apache2/modules > + moduleargs= > + APACHECTL=/usr/sbin/apachectl2 > + RETVAL=0 > + export TMPDIR=/var/spool/apache2/tmp > + TMPDIR=/var/spool/apache2/tmp > ++ hostname > + thehost=mail.vopmes.mes > + hostname -i > + case "$1" in > + briefstatus > + restart > + stop > + msg_stopping httpd2 > + local a > + a=httpd2 > + shift > + printf 'Stopping %s service: ' httpd2 > Stopping httpd2 service: + stop_wait 300 > + (( i=300 )) > + (( 300>0 )) > + /usr/sbin/apachectl2 stop ^^^^^^^^^^^^^^^^^^^^^^^^^ > + RETVAL=0 В данном месте apachectl2 stop вернул 0 => работающего httpd2 уже не должно быть. (Т. к. briefstatus, вызываемый в процессе apachectl2 stop вернул не 0). > + '[' 0 -ne 255 ']' > + return 0 > + RETVAL=0 > + '[' 0 -eq 0 ']' > + echo_success > + MOVE_TO_COL > + '[' -n 183 ']' > + local pos=175 > + '[' 175 -le 0 ']' > + tput -- hpa 175 > + > echo -n '[ ' [ + SETCOLOR_SUCCESS > + echo bold > + echo setaf 2 > + tput -S > + echo -n DONE > DONE+ SETCOLOR_NORMAL > + echo op > + echo sgr0 > + tput -S > + echo -ne ' ]\r' > + return 0 > + echo > > + return 0 > + RETVAL=0 > + '[' 0 -eq 0 ']' > + conftest > + action 'Checking configuration sanity for httpd2: ' /usr/sbin/apachectl2 configtest ... > + success 'Checking configuration sanity for httpd2: ' > + '[' -z '' ']' > + initlog -n /etc/init.d/httpd2 -s 'Checking configuration sanity for httpd2: ' -e 1 > + echo_success > + MOVE_TO_COL > + '[' -n 183 ']' > + local pos=175 > + '[' 175 -le 0 ']' > + tput -- hpa 175 > + echo -n '[ ' ... > > + return 0 > + RETVAL=0 > + return 0 > + start > ++ msg_starting httpd2 > ++ local a > ++ a=httpd2 > ++ shift > ++ printf 'Starting %s service: ' httpd2 > + action 'Starting httpd2 service: ' /usr/sbin/apachectl2 start > + local STRING > + STRING='Starting httpd2 service: ' > + shift > + echo -n 'Starting httpd2 service: ' > Starting httpd2 service: + initlog -c '/usr/sbin/apachectl2 start' > + local rc=3 В тоже время, apachectl2 start вернул не 0, что странно... > + '[' 3 -eq 0 ']' > + failure 'Starting httpd2 service: ' > + local rc=1 > + '[' -z '' ']' > + initlog -n /etc/init.d/httpd2 -s 'Starting httpd2 service: ' -e 2 > + echo_failure > + MOVE_TO_COL > + '[' -n 183 ']' > + local pos=175 > + '[' 175 -le 0 ']' > + tput -- hpa 175 > + echo -n '[' ... Похоже надо проверить briefstatus... Прошу прислать вывод следующей строки команд (при запущенном httpd2, от root): apachectl2 stop;echo $?;ps ax|fgrep httpd2;apachectl2 briefstatus;echo $?;apachectl2 start;echo $?;ps ax|fgrep httpd2;apachectl2 briefstatus;echo $?; -- С уважением. Алексей.