Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!bu-cs!bzs From: bzs@bu-cs.BU.EDU (Barry Shein) Newsgroups: comp.unix.questions Subject: Re: How to make sendmail re-read the configuration file Message-ID: <3349@bu-cs.BU.EDU> Date: Sat, 10-Jan-87 20:20:20 EST Article-I.D.: bu-cs.3349 Posted: Sat Jan 10 20:20:20 1987 Date-Received: Sat, 10-Jan-87 23:51:12 EST Organization: Boston U. Comp. Sci. Lines: 19 Re: making sendmail re-read cf file on signal... Assuming it's a hard thing to add, how about just a 10 line C program which fork/execs sendmail (in a process group) and waits for the signal. When received kills its child and starts another fresh one. Not entirely sure what the advantage is over just killing and rerunning the sendmail unless you're worried about the small window in which there is no daemon running. I guess the little hack above could put its pid into a file or something making it easier to find (mqueue/.pid). Maybe just teaching sendmail to re-exec itself on receipt of a signal would be sufficient (or have it squirrel away the change date of the .cf file and re-exec on that updating, have it check as it starts each q run.) Just thinking out loud. -Barry Shein, Boston University