Apache not starting with cron or at boot

This is a discussion on Apache not starting with cron or at boot within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello, ../apachectl startssl starts fine from command line However.... from cron or at boot it will not start. Running Solaris ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-31-2003
Christophe
 
Posts: n/a
Default Apache not starting with cron or at boot

Hello,

../apachectl startssl starts fine from command line

However....

from cron or at boot it will not start.

Running Solaris 8 with the latest patches 108528-23
Ultra 2 system

Here is the line in cron:
04 12 * * * truss /etc/rc2.d/S99apache -print
>/etc/cron.d/apache_start2


also I have had cron look like:
04 12 * * * truss /netra/usr/local/etc/httpd/bin/apachectl startssl
-print >/etc/cron.d/apache_start2


Either way the result is:
/netra/usr/local/etc/httpd/bin/apachectl startssl: httpd could not be
started


There is nothing in the apache error log file about this.

The cron log shows:

> root 11642 c Sun Aug 31 10:10:00 2003

< root 11642 c Sun Aug 31 10:10:00 2003 rc=1
> CMD: truss /netra/usr/local/etc/httpd/bin/apachectl startssl -print >/etc/cron.d/apache_start2


Any insight would be great!

Thank you

Christophe
  #2 (permalink)  
Old 09-03-2003
rach
 
Posts: n/a
Default Re: Apache not starting with cron or at boot


"Christophe" <info@owingsmills.net> wrote in message
news:987c30db.0308310836.695c3e36@posting.google.c om...
> Hello,
>
> ./apachectl startssl starts fine from command line
>
> However....
>
> from cron or at boot it will not start.
>
> Running Solaris 8 with the latest patches 108528-23
> Ultra 2 system
>
> Here is the line in cron:
> 04 12 * * * truss /etc/rc2.d/S99apache -print
> >/etc/cron.d/apache_start2

>
> also I have had cron look like:
> 04 12 * * * truss /netra/usr/local/etc/httpd/bin/apachectl startssl
> -print >/etc/cron.d/apache_start2
>
>
> Either way the result is:
> /netra/usr/local/etc/httpd/bin/apachectl startssl: httpd could not be
> started
>
>
> There is nothing in the apache error log file about this.
>
> The cron log shows:
>
> > root 11642 c Sun Aug 31 10:10:00 2003

> < root 11642 c Sun Aug 31 10:10:00 2003 rc=1
> > CMD: truss /netra/usr/local/etc/httpd/bin/apachectl startssl -print

>/etc/cron.d/apache_start2
>
> Any insight would be great!
>
> Thank you
>
> Christophe


On my FreeBSD 5.1 system apache2 starts with a
/usr/local/etc/rc.d/apache2.sh file and in it:

== begin code ==
#!/bin/sh
PREFIX=/usr/local

case "$1" in
start)

[ "ssl" = "ssl" -a -f "$PREFIX/etc/apache2/ssl.crt/server.crt" ] && SSL=ssl
[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} >
/dev/null && echo -n ' apache2'
;;
stop)
[ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null &&
echo -n ' apache2'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac

exit 0

== end code ==

I'm sure my email client will ruin that code.

Rach


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:08 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0