Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 17:43:00 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        fquest@ccstores.com (Jim Pazarena)
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: rc.d execution  was:boot up notification
Message-ID:  <200501142243.j0EMh1A07185@clunix.cl.msu.edu>
In-Reply-To: <41E849E1.4020803@ccstores.com> from "Jim Pazarena" at Jan 14, 2005 02:38:25 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501142243.j0EMh1A07185>