> > 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 "[EMAIL PROTECTED]" > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"