rcNG issue
Cédric Jonas
cedric at virtual-globe.net
Mon Jul 18 18:17:27 GMT 2005
On Mon, 18 Jul 2005 19:58:43 +0200
Kövesdán Gábor <gabor.kovesdan at t-hosting.hu> wrote:
> Hello,
>
> I have a problem with my rcNG scripts. There are three scripts:
> named.sh, apache2.sh and proftpd.sh. Apache and ProFTPd require hostname
> resolving thus named should start firstly. The headers of my scripts are:
>
> named.sh:
>
> #!/bin/sh
> #
>
> # PROVIDE: named
> # REQUIRE: SERVERS
> # BEFORE: apache2 proftpd mysqld
> # KEYWORD: FreeBSD shutdown
>
> . /etc/rc.subr
>
>
>
>
>
> apache2.sh:
>
> #!/bin/sh
> #
>
> # PROVIDE: apache2
> # REQUIRE: NETWORKING SERVERS named
> # BEFORE: DAEMON
> # KEYWORD: FreeBSD shutdown
>
> . /etc/rc.subr
>
>
>
> proftpd.sh:
>
> #!/bin/sh
> #
>
> # PROVIDE: proftpd
> # REQUIRE: DAEMON
> # BEFORE: LOGIN
> # KEYWORD: FreeBSD shutdown
>
> . /etc/rc.subr
>
>
>
>
>
> And when I enable all the three scripts in rc.conf, the apache hangs
> because it can't resolve the computer's hostname. It's really annoying,
> I have to manually start it after a reboot, or wait for the cronscript
> that checks whether it is running.
> What's wrong?
I had similar problems these days, and I found out that rcNG seems to be
only active for /etc/rc.d/ (see rc.subr(8) and rcorder(8) + files in /etc/).
So put your scripts there, and it will do what you want.
>
> Thanks in advance,
>
> Gábor Kövesdán
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>
--
Best regards,
Cédric Jonas
More information about the freebsd-stable
mailing list