From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 22:43:07 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7DF616A4E7 for ; Fri, 14 Jan 2005 22:43:07 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78DC943D2F for ; Fri, 14 Jan 2005 22:43:07 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id j0EMh1A07185; Fri, 14 Jan 2005 17:43:01 -0500 (EST) From: Jerry McAllister Message-Id: <200501142243.j0EMh1A07185@clunix.cl.msu.edu> To: fquest@ccstores.com (Jim Pazarena) Date: Fri, 14 Jan 2005 17:43:00 -0500 (EST) In-Reply-To: <41E849E1.4020803@ccstores.com> from "Jim Pazarena" at Jan 14, 2005 02:38:25 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: FreeBSD Questions Subject: Re: rc.d execution was:boot up notification X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 22:43:08 -0000 > > Gregor Mosheh wrote: > >>I would like one of my servers to send me an email > >>when > >>it boots. I envision a script in rc.conf to do this. > >>Is there an easier way, or an automatic system which > >>can do this? > > > > > > I put this script in my /usr/local/etc/rc.d directory. > > I want it to run last, so I name it 999.notify.sh > > > > #!/bin/sh > > > > do the rc scripts execute the file(s) it finds in an order > OTHER than the normal ascii sequence? Reason I ask is that > "999..." falls AFTER upper-case and BEFORE lower-case. I don't know the order for sure. I think they use an unmodified sort order, but... But a comment, you should probably put in the case for start and stop even if you use the extra simple script in posted because otherwise you will get the same boot message for both boots and shutdowns. Sorry, I was too busy on other things to notice that bit. ////jerry > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >