On Mon, Jun 30, 2008 at 04:37:47PM -0400, fred wrote:
> Hi guys,
> Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/
> Resin.sh and apache.sh

Are these the scripts provided by the ports? They should be installed
without the '.sh' extension. See rc(8).

> I need resin to be started when apache is starting, how can I do that? I
> can't find any documentation on priority or order for startup scripts.

See the manual pages for rc(8) and rcorder(8). 

Basically, you need to put a number of special comments in the scripts
for the rc system to work with them. For instance, the script for resin
(made from /usr/ports/www/resin3/files/resin.sh.in) should be modified like:

# REQUIRE: LOGIN apache22

The latter is provided by the startup script installed by apache. This
is generated from /usr/ports/www/apache22/files/apache22.sh.in. 

Both should of course be enabled in /etc/rc.conf:


R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

Attachment: pgpt0uwNUZ3VI.pgp
Description: PGP signature

Reply via email to