From owner-freebsd-questions@freebsd.org Sat Jan 30 04:27:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDC68A72A84 for ; Sat, 30 Jan 2016 04:27:07 +0000 (UTC) (envelope-from markhamb@corp.ssimicro.com) Received: from mail.ssimicro.com (mail.ssimicro.com [64.247.129.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.ssimicro.com", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 624921FCE for ; Sat, 30 Jan 2016 04:27:07 +0000 (UTC) (envelope-from markhamb@corp.ssimicro.com) Received: from Markhams-MacBook-Pro.local (64-247-134-200.ssimicro.com [64.247.134.200]) (authenticated bits=0) by mail.ssimicro.com (8.14.7/8.14.7) with ESMTP id u0U4NjUC008655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Fri, 29 Jan 2016 21:23:45 -0700 (MST) Subject: Re: "epilogue" script? To: freebsd-questions@freebsd.org References: <17145.128.135.52.6.1454106907.squirrel@cosmo.uchicago.edu> From: markham breitbach X-Enigmail-Draft-Status: N1110 Message-ID: <56AC3B98.5080801@corp.ssimicro.com> Date: Fri, 29 Jan 2016 21:27:04 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <17145.128.135.52.6.1454106907.squirrel@cosmo.uchicago.edu> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2016 04:27:07 -0000 Back in the olden days, we used to use /etc/rc.local as the epilogue script. You can still toss things in there, and I believe they will be run, but that is no longer guaranteed to be the last of the startup scripts.=20 =2E.. This has made me go and actually `man rc` It is a really good man page, and should tell you everything you need to get your own custom scripts into the startup, but rc.local is still a quick and dirty place to just toss a few command lines. -Markham On 2016-01-29 3:35 PM, Valeri Galtsev wrote: > Dear Experts, > > How does one create "epoligue" script in FreeBSD. By "epoligue" script > script I mean here the script that is executed after everything describ= ed > in /etc/rc.conf is done (services started, interfaces initialized etc.)= =2E I > tried to follow RTFM advise, but it looks like I'm too stupid to be abl= e > to find leads. I tried to put what I need into /etc/rc.conf.local, and > what I put there is executed, but not after everything in /etc/rc.conf = is > done. > > I'm left clueless. As Linux refugee I have a feeling that this is doabl= e > without a hack, like making init script, and having "sleep ..." in it > before payload. In Linux this is done using /etc/rc.d/rc.local which is= > executed _after_ everything else is done. > > Just pointers where to read will be great. > > Thanks a lot for all your replies. > > Valeri > > ++++++++++++++++++++++++++++++++++++++++ > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > ++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd= =2Eorg"