Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-unix!hplabs!sdcrdcf!burdvax!bpa!cbmvax!vu-vlsi!devon!paul From: paul@devon.UUCP (Paul Sutcliffe Jr.) Newsgroups: comp.unix.questions Subject: Re: How to make sendmail re-read the configuration file Message-ID: <201@devon.UUCP> Date: Thu, 15-Jan-87 08:52:06 EST Article-I.D.: devon.201 Posted: Thu Jan 15 08:52:06 1987 Date-Received: Mon, 19-Jan-87 03:48:27 EST References: <136@quacky.mips.UUCP> Distribution: na Organization: Devon Computer Services, Allentown, PA Lines: 21 Summary: No help, but a suggestion. In article <136@quacky.mips.UUCP>, dce@mips.UUCP (David Elliott) writes: > I would like to modify sendmail to have it re-read the configuration > file on some given signal (HUP?), but I am worried that sendmail > can't handle this without modifications elsewhere. Is there anyone > with a lot of sendmail experience that can help me out? Why not do what cron(1) does. Perform a stat() call on the file's fd after it is first opened and save the st_mtime value somewhere (the last modification time of the file). Then have sendmail re-stat the file every time it is awakened, compare the new st_mtime value with the saved one, and if the new one is greater (the config file has been modified since the original read), re-read the file. -paul -- Paul Sutcliffe, Jr. UUCP: {seismo,ihnp4,allegra,rutgers}!cbmvax!devon!paul Devon Computer Services COMPUSERVE: 76176,502 Allentown, Penna. "I love work ..." +1 215 398 3776 "... I could sit and watch people do it all day!"