[linux] apache restart problem

jk janko na mediate.sk
Středa Květen 26 12:34:33 CEST 2004


Martin Kyrc wrote:
> Zdravim konferu,
> pred nejakym casom mi zacal padat apache (vzdy rano nebezal). po
> zistovani kde by mohol byt problem som prisiel na to, ze restart/reload
> nezbehne korektne (stop a nasledny start ide).
> 
> $ apachectl stop
> /usr/sbin/apachectl stop: httpd stopped
> $ apachectl start
> /usr/sbin/apachectl start: httpd started
> $ apachectl restart
> /usr/sbin/apachectl restart: httpd restarted
> $ apachectl restart
> /usr/sbin/apachectl restart: httpd not running, trying to start
> /usr/sbin/apachectl restart: httpd started
> 
> ako vidno, restart nezbehne pokial apache bezi. v logu dostname iba
> hlasku o tom, ze bol iniciovany restart, ale nic viac. (podobne aj pri
> reload).
> 
> apache v1.3.29.0.2-4
> debian
> 
> nestretol sa niekto s niecim podobnym?
> co by som mal skontrolovat?
> ak by bol problem s niektorym z modulov, tak by nezbehol ani stop-start.
> 
> dik za kazde nakopnutie.
> 
> horol
> 
> _______________________________________________
> http://lists.linux.sk/listinfo/linux
> Prehladavanie archivu: http://search.lists.linux.sk
> Meta FAQ: http://faq.lists.linux.sk
> 

To je stara vec... treba prerobit rc skript

#!/bin/bash
#
#       /etc/rc.d/init.d/httpd
#
# Starts the httpd daemon
#
# chkconfig: 345 83 15
# description: Runs commands scheduled by the at command at the time \
#    specified when at was run, and runs batch commands when the load \
#    average is low enough.
# processname: httpd

CTL=/apache/bin/apachectl

case "$1" in
    'start')
       $CTL startssl ;;
    'stop')
       #get_pid
       #[ $? -eq 1 ] && kill -9 $pid
       $CTL stop ;;
    'restart')
       $CTL stop
     sleep 5s
       $CTL start
      ;;
    *)
       echo "usage $0 start|stop|restart" ;;
esac

# All done
exit 0


-- 

Desi Petrovic

Mediate s.r.o.
J. Stanislava 41
841 05 Bratislava
Slovak Republic

http://www.mediate.sk
Email: desi na mediate.sk
ICQ: 79106948




Další informace o konferenci linux