Date: Tue, 16 Jan 2007 00:00:59 -0800 From: Jay Chandler <chandler@chapman.edu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How about a Start-Up Script that execute every 30 minutes for resolv.conf??? Message-ID: <45AC863B.3090508@chapman.edu> In-Reply-To: <6f4f57f60701152357v59daf746xb62f66c8bf31ac51@mail.gmail.com> References: <218971.7584.qm@web59210.mail.re1.yahoo.com> <6f4f57f60701152357v59daf746xb62f66c8bf31ac51@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
George Vanev wrote: > If you really want to copy resolv.conf from /root to /etc every 30 min > you don't need a startup script. Just add the following line in > /etc/crontab: > */30 * * * * root cp /root/resolv.conf > /etc/resolv.conf > > I don't know what exactly are you trying to do, but this is not > quite a good decision. > > Agreed-- it's a bad idea. However, if you still want to do it, throw a -f flag after the cp just to make sure it forcibly overwrites the resolv.conf. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler@chapman.edu Today's Excuse: Atilla the Hub
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45AC863B.3090508>