[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Prob with httpd



>Hi All,
>Has anyone experienced this problem before ?
>
>
>[root@dom3 conf]# /etc/rc.d/init.d/httpd start
>Setting up Web Service: /usr/sbin/httpd
>
>[root@dom3 conf]# /etc/rc.d/init.d/httpd status
>httpd dead but subsys locked
>

I've not experienced it, but taking a look at /etc/rc.d/init.d/httpd - I suspect that the daemons aren't running, but that the lockfile exists:

case "$1" in
  start)
        LINE1=`getmsg httpd_start_1`
        LINE2=`getmsg httpd_start_2`
        $LCD_STOP
        $LCD_SWRITE "$LINE1" "$LINE2" &>/dev/null &
        echo -n "$LINE1 $LINE2: "
        $HTTPD -f /etc/httpd/conf/httpd.conf
        echo $HTTPD
        echo
        touch /var/lock/subsys/httpd
        ;;

The error message appears to come from /etc/httpd/rc.d/functions:

    187         # See if /var/lock/subsys/$1 exists
    188         if [ -f /var/lock/subsys/$1 ]; then
    189                 echo "$1 dead but subsys locked"
    190                 return 2
    191         fi
    192         echo "$1 is stopped"
    193         return 3

It looks about 99% certain to me that the subsys lockfile for httpd exists - you need to remove them.

try:

rm /var/lock/subsys/httpd

then:

/etc/rc.d/init.d/httpd start

hth

Greg
-- 
http://www.webyourbusiness.com/
Providers of E-Commerce Software &
Web Design Consultancy and Services.
PH: (970) 266-0195   FAX: (970) 266-0158