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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 | |
|
|