[lug] Determine mtime
John Hernandez
John.Hernandez at noaa.gov
Tue Jun 17 09:37:30 MDT 2003
On Tuesday 17 June 2003 00:34, John Starkey wrote:
> I have a php script that creates a zone file and I need to restart named
> after it's created. The best that I can come up with is to check mtime
> on the new zone file every 15 minutes or so and if it's after the mtime
> of a file I touched when I did the last restart, then restart named
> again. Does anyone know of a way to determine the mtime of a file using
> bash, or know of a more efficient way to do this?
>
John, a better way might be to have your php script directly call 'rndc
reload'. To do this, you'll probably need set up the keys correctly. Here's
a helpful reference:
http://www.unixwiz.net/techtips/bind9-chroot.html#rndc
--
| John Hernandez - NOAA Boulder NOC - 303-497-6392
| Mailstop R/OM62. 325 Broadway, Boulder, CO 80305
| PGP Public Key ID: 586A7E23
More information about the LUG
mailing list