You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2006/03/10 08:24:54 UTC
[zone] apache2 restarts automatically now
I have configured apache2 to start automatically for http://
cocoon.zones.apache.org/ , so at least that page should come up when
the zone is restarted. Not being familiar with Solaris's smf, I did
it the old /etc/init.d way.
The live Cocoon demos are still restarted via crontab only, so they
might come up later, for now.
I haven't touched the Daisy config, so it still needs a manual start
when the zone restarts. If one of our Daisyists could write a script
to start it and put it in /home/daisy (I think it needs some delay
between starting the various components?), it would be easy to run
that automatically from /etc/init.d.
-Bertrand
Re: [zone] apache2 restarts automatically now
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 10 mars 06 à 09:41, Pier Fumagalli a écrit :
> On 10 Mar 2006, at 07:24, Bertrand Delacretaz wrote:
>
>> I have configured apache2 to start automatically for http://
>> cocoon.zones.apache.org/ , so at least that page should come up
>> when the zone is restarted. Not being familiar with Solaris's smf,
>> I did it the old /etc/init.d way.
>
> Did you put a link from /etc/init.d/... to the Runlevel 2 scripts?
>
> ln -sf /etc/init.d/apache /etc/rc2.d/S99apache
Yes that's what I did, with S50 as this was the value used for apache
1.x on that machine. And in rc3.d as the system comes up to that
level when restarted.
So it's /etc/rc3.d/S50apache2 which is a link to /etc/init.d/apache2.
I put the K links for stopping as well.
What I meant by "old way" is that the Solaris docs seem to imply that
this is deprecated in Solarisland, and one should use smf instead.
> ...But remember the link in 'rc2.d', called "S99....." (which means
> start with order 99)...
Any reason to use 99 specifically? I haven't checked precisely if
other stuff needs to start before apache2, don't think so.
-Bertrand
Re: [zone] apache2 restarts automatically now
Posted by Pier Fumagalli <pi...@betaversion.org>.
On 10 Mar 2006, at 07:24, Bertrand Delacretaz wrote:
> I have configured apache2 to start automatically for http://
> cocoon.zones.apache.org/ , so at least that page should come up
> when the zone is restarted. Not being familiar with Solaris's smf,
> I did it the old /etc/init.d way.
Did you put a link from /etc/init.d/... to the Runlevel 2 scripts?
ln -sf /etc/init.d/apache /etc/rc2.d/S99apache
You can use "apachectl" directly in there as well
ln -sf /usr/local/apache/apachectl /etc/init.d/apache
ln -sf /etc/init.d/apache /etc/rc2.d/S99apache
But remember the link in 'rc2.d', called "S99....." (which means
start with order 99).
Pier
>
> The live Cocoon demos are still restarted via crontab only, so they
> might come up later, for now.
>
> I haven't touched the Daisy config, so it still needs a manual
> start when the zone restarts. If one of our Daisyists could write a
> script to start it and put it in /home/daisy (I think it needs some
> delay between starting the various components?), it would be easy
> to run that automatically from /etc/init.d.
>
> -Bertrand