From owner-freebsd-stable@FreeBSD.ORG Mon Jul 18 18:17:27 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 876A616A421 for ; Mon, 18 Jul 2005 18:17:27 +0000 (GMT) (envelope-from cedric@virtual-globe.net) Received: from dd2030.kasserver.com (dd2030.kasserver.com [81.209.148.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25E9A43D46 for ; Mon, 18 Jul 2005 18:17:26 +0000 (GMT) (envelope-from cedric@virtual-globe.net) Received: from ganymed.decemplex.loc (83-134-161-209.Liege.GoPlus.FastDSL.tiscali.be [83.134.161.209]) by dd2030.kasserver.com (Postfix) with ESMTP id EDBDCF4883 for ; Mon, 18 Jul 2005 20:17:24 +0200 (CEST) Date: Mon, 18 Jul 2005 20:17:13 +0200 From: =?ISO-8859-1?Q?C=E9dric?= Jonas To: freebsd-stable@freebsd.org Message-ID: <20050718201713.757a9f58@ganymed.decemplex.loc> In-Reply-To: <42DBEDD3.60906@t-hosting.hu> References: <42DBEDD3.60906@t-hosting.hu> X-Mailer: Sylpheed-Claws 1.9.12 (GTK+ 2.6.8; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: rcNG issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2005 18:17:27 -0000 On Mon, 18 Jul 2005 19:58:43 +0200 K=F6vesd=E1n G=E1bor wrote: > Hello, >=20 > I have a problem with my rcNG scripts. There are three scripts:=20 > named.sh, apache2.sh and proftpd.sh. Apache and ProFTPd require hostname= =20 > resolving thus named should start firstly. The headers of my scripts are: >=20 > named.sh: >=20 > #!/bin/sh > # >=20 > # PROVIDE: named > # REQUIRE: SERVERS > # BEFORE: apache2 proftpd mysqld > # KEYWORD: FreeBSD shutdown >=20 > . /etc/rc.subr >=20 >=20 >=20 >=20 >=20 > apache2.sh: >=20 > #!/bin/sh > # >=20 > # PROVIDE: apache2 > # REQUIRE: NETWORKING SERVERS named > # BEFORE: DAEMON > # KEYWORD: FreeBSD shutdown >=20 > . /etc/rc.subr >=20 >=20 >=20 > proftpd.sh: >=20 > #!/bin/sh > # >=20 > # PROVIDE: proftpd > # REQUIRE: DAEMON > # BEFORE: LOGIN > # KEYWORD: FreeBSD shutdown >=20 > . /etc/rc.subr >=20 >=20 >=20 >=20 >=20 > And when I enable all the three scripts in rc.conf, the apache hangs=20 > because it can't resolve the computer's hostname. It's really annoying,=20 > I have to manually start it after a reboot, or wait for the cronscript=20 > 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. >=20 > Thanks in advance, >=20 > G=E1bor K=F6vesd=E1n > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >=20 --=20 Best regards,=20 C=E9dric Jonas