svc:/network/http:apache2 does not automatically start after a reboot in Solaris 10 FCS. Here's the output from /etc/svc/volatile/network-http:apache2.log:
-------- bash-3.00# more network-http:apache2.log [ Nov 23 10:53:58 Enabled. ] [ Nov 23 10:53:58 Executing start method ("/lib/svc/method/http-apache2 start") ] mkdir: "/var/run/apache2": Read-only file system Syntax error on line 358 of /etc/apache2/httpd.conf: DocumentRoot must be a directory [ Nov 23 10:54:00 Method "start" exited with status 1 ] [ Nov 23 10:54:00 Executing start method ("/lib/svc/method/http-apache2 start") ] Syntax error on line 358 of /etc/apache2/httpd.conf: DocumentRoot must be a directory [ Nov 23 10:54:00 Method "start" exited with status 1 ] [ Nov 23 10:54:00 Executing start method ("/lib/svc/method/http-apache2 start") ] ----------- It starts fine after I do a "svcadm clear svc:/network/http:apache2". My questions are: * Is this a timing issue i.e. is this started early in the boot process and /var is mounted as Read-only? The dependencies for this service are: # svcs -d svc:/network/http:apache2 STATE STIME FMRI online 10:53:53 svc:/network/loopback:default online 10:53:57 svc:/network/physical:default # so should it also depend on svc:/system/filesystem/local:default so that it starts up after /var is completely mounted? * Am I missing a patch or is my setup screwed up? Thanks in Advance, -- prasad PS: What's the deal with "DocumentRoot must be a directory"? The syntax of httpd.conf checks out fine when I run "httpd -t" This message posted from opensolaris.org