root@sol10 /var/svc/log# svcs -vx svc:/network/csk-http:CSKapache2 (Apache 2 HTTP server) State: maintenance since Mon Sep 24 06:17:21 2007 Reason: Start method failed repeatedly, last exited with status 1. See: http://sun.com/msg/SMF-8000-KS See: man -M /opt/coolstack/apache2/man -s 8 httpd See: /var/svc/log/network-csk-http:CSKapache2.log Impact: This service is not running. root@sol10 /var/svc/log# ls|grep csk network-csk-mysql:default.log root@sol10 /export/www/logs# tail error.log [Mon Sep 24 06:03:44 2007] [error] [client 10.0.1.3] File does not exist: /export/www/htdocs/favicon.ico [Mon Sep 24 06:03:58 2007] [error] [client 10.0.1.3] File does not exist: /export/www/htdocs/favicon.ico [Mon Sep 24 06:03:58 2007] [error] [client 10.0.1.3] File does not exist: /export/www/htdocs/favicon.ico [Mon Sep 24 06:03:58 2007] [error] [client 10.0.1.3] File does not exist: /export/www/htdocs/favicon.ico [Mon Sep 24 06:04:41 2007] [notice] caught SIGTERM, shutting down [Mon Sep 24 06:13:00 2007] [notice] suEXEC mechanism enabled (wrapper: /opt/coolstack/apache2/bin/suexec) [Mon Sep 24 06:13:01 2007] [notice] Digest: generating secret for digest authentication ... [Mon Sep 24 06:13:01 2007] [notice] Digest: done [Mon Sep 24 06:13:02 2007] [notice] Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.7d PHP/5.2.0 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Mon Sep 24 06:16:00 2007] [notice] caught SIGTERM, shutting down root@sol10 /export/www/logs# ps -ef|grep httpd root@sol10 /export/www/logs# root@sol10 /export/www/logs# apachectl -t Syntax OK root@sol10 /export/www/logs# apachectl start ^[[A^[[A^[[Aroot@sol10 /export/www/logs# ps -ef|grep httpd webservd 27096 27091 0 06:25:36 ? 0:00 /opt/coolstack/apache2/bin/httpd -k start webservd 27093 27091 0 06:25:36 ? 0:00 /opt/coolstack/apache2/bin/httpd -k start webservd 27092 27091 0 06:25:36 ? 0:00 /opt/coolstack/apache2/bin/httpd -k start root 27091 1 2 06:25:35 ? 0:00 /opt/coolstack/apache2/bin/httpd -k start webservd 27094 27091 0 06:25:36 ? 0:00 /opt/coolstack/apache2/bin/httpd -k start webservd 27095 27091 0 06:25:36 ? 0:00 /opt/coolstack/apache2/bin/httpd -k start root@sol10 /export/www/logs# netstat -a|grep LISTEN *.sunrpc *.* 0 0 49152 0 LISTEN *.ssh *.* 0 0 49152 0 LISTEN *.3306 *.* 0 0 49152 0 LISTEN *.80 *.* 0 0 49152 0 LISTEN *.443 *.* 0 0 49152 0 LISTEN sroot@sol10 ~# svcadm clear csk-http root@sol10 ~# svcs -vx svc:/network/csk-http:CSKapache2 (Apache 2 HTTP server) State: maintenance since Mon Sep 24 06:27:15 2007 Reason: Start method failed repeatedly, last exited with status 1. See: http://sun.com/msg/SMF-8000-KS See: man -M /opt/coolstack/apache2/man -s 8 httpd See: /var/svc/log/network-csk-http:CSKapache2.log Impact: This service is not running. root@sol10 ~# svcadm enable csk-http root@sol10 ~# svcs -vx svc:/network/csk-http:CSKapache2 (Apache 2 HTTP server) State: maintenance since Mon Sep 24 06:27:15 2007 Reason: Start method failed repeatedly, last exited with status 1. See: http://sun.com/msg/SMF-8000-KS See: man -M /opt/coolstack/apache2/man -s 8 httpd See: /var/svc/log/network-csk-http:CSKapache2.log Impact: This service is not running. root@sol10 ~# ps -ef|grep httpd root@sol10 ~# root@sol10 /var/svc/manifest/network# cat cskapache2.xml root@sol10 /opt/coolstack/lib/svc/method# cat svc-cskapache2 #!/sbin/sh # # Copyright 2004-2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "@(#)http-apache2 1.2 04/11/11 SMI" # Modified for apache in CSKamp package of Cool Stack # This file should reside in /opt/coolstack/lib/svc/method . /lib/svc/share/smf_include.sh APACHE_HOME=/opt/coolstack/apache2 CONF_FILE=$APACHE_HOME/conf/httpd.conf PIDFILE=$APACHE_HOME/logs/httpd.pid [ ! -f ${CONF_FILE} ] && exit $SMF_EXIT_ERR_CONFIG case "$1" in start) /bin/rm -f ${PIDFILE} cmd="start" ;; refresh) cmd="graceful" ;; stop) cmd="stop" ;; *) echo "Usage: $0 {start|stop|refresh}" exit 1 ;; esac exec ${APACHE_HOME}/bin/apachectl $cmd 2>&1 root@sol10 ~# echo $LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/X/lib:/usr/X11/lib:/usr/dt/lib:/usr/openwin/lib:/opt/SUNWspro/lib:/opt/coolstack/lib:/opt/coolstack/apache2/lib:/opt/coolstack/mysql/lib:/opt/coolstack/php5/lib:/usr/sfw/lib:/opt/csw/lib root@sol10 ~# echo $PATH /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/X/demo:/usr/X/bin:/usr/X11/bin:/usr/dt/bin:/usr/openwin/bin:/usr/java/jre/bin:/usr/jdk/latest/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/coolstack/bin:/opt/coolstack/apache2/bin:/opt/coolstack/mysql/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sfw/sbin:/opt/csw/sbin:/usr/ucb:/usr/sadm root@sol10 ~# which apachectl /opt/coolstack/apache2/bin/apachectl