rendered paste bodyroot@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
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM
"/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Copyright 2006-2007 Sun Microsystems, Inc. All rights reserved.
CSKapache2 manifest - should reside in /var/svc/manifest/network.
-->
<service_bundle type='manifest' name='CSKamp:apache'>
<service
name='network/csk-http'
type='service'
version='1'>
<!--
Because we may have multiple instances of network/http
provided by different implementations, we keep dependencies
and methods within the instance.
-->
<instance name='CSKapache2' enabled='false'>
<!--
Wait for network interfaces to be initialized.
-->
<dependency name='network'
grouping='require_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/milestone/network:default'/>
</dependency>
<!--
Wait for all local filesystems to be mounted.
-->
<dependency name='filesystem-local'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri
value='svc:/system/filesystem/local:default'/>
</dependency>
<!--
Wait for automounting to be available, as we may be
serving data from home directories or other remote
filesystems.
-->
<dependency name='autofs'
grouping='optional_all'
restart_on='error'
type='service'>
<service_fmri
value='svc:/system/filesystem/autofs:default'/>
</dependency>
<exec_method
type='method'
name='start'
exec='/opt/coolstack/lib/svc/method/svc-cskapache2 start'
timeout_seconds='60'>
<method_context>
<method_credential
user='webservd' group='webservd'
privileges='basic,!proc_session,!proc_info,!file_link_any,net_privaddr' />
</method_context>
</exec_method>
<exec_method
type='method'
name='stop'
exec='/opt/coolstack/lib/svc/method/svc-cskapache2 stop'
timeout_seconds='60'>
<method_context />
</exec_method>
<exec_method
type='method'
name='refresh'
exec='/opt/coolstack/lib/svc/method/svc-cskapache2 refresh'
timeout_seconds='60'>
<method_context />
</exec_method>
<property_group name='httpd' type='application'>
<stability value='Evolving' />
<propval name='ssl' type='boolean' value='false' />
</property_group>
<property_group name='startd' type='framework'>
<!-- sub-process core dumps shouldn't restart session -->
<propval name='ignore_error' type='astring'
value='core,signal' />
</property_group>
</instance>
<stability value='Evolving' />
<template>
<common_name>
<loctext xml:lang='C'>
Apache 2 HTTP server
</loctext>
</common_name>
<documentation>
<manpage title='httpd' section='8'
manpath='/opt/coolstack/apache2/man' />
<doc_link name='apache.org'
uri='http://httpd.apache.org' />
</documentation>
</template>
</service>
</service_bundle>
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