From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 22:38:24 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 A527A16A4CF for ; Fri, 14 Jan 2005 22:38:24 +0000 (GMT) Received: from mail.qcislands.net (mail.qcislands.net [209.53.238.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 602DE43D3F for ; Fri, 14 Jan 2005 22:38:24 +0000 (GMT) (envelope-from fquest@ccstores.com) Received: from [209.53.238.86] (helo=[192.168.1.4]) by mail.qcislands.net with esmtp (Exim 4.43) id 1Cpa5L-000KyP-06; Fri, 14 Jan 2005 14:38:27 -0800 Message-ID: <41E849E1.4020803@ccstores.com> Date: Fri, 14 Jan 2005 14:38:25 -0800 From: Jim Pazarena User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions References: <20050114210755.13772.qmail@web53803.mail.yahoo.com> In-Reply-To: <20050114210755.13772.qmail@web53803.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-local_scan: locally submitted (86) Subject: 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:38:24 -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.