From: seventh g. <sev...@gm...> - 2007-09-04 21:00:26
|
On 9/4/07, Alex Zeffertt <aj...@ca...> wrote: > seventh guardian wrote: > > * when br2684ctl is used to create more than one interface it only > > creates one pidfile, named after the last interface specified. So > > there's no way to tell which daemon is responsible for the other > > interfaces. > [snip] > > Comments? > > > > Just an idea... you could have just one br2684ctl daemon, which writes > one pidfile, and which determines which interfaces to create by reading > a config file. > > To add or delete an interface you could add or delete a line from > the config file and then send br2684ctl a SIGHUP. > > That seems clean (ish) to me.... I guess there's really no need to complicate things. The support for specifying multiple interfaces is nothing more than a commodity that came as an "unrequested bonus" for the original code. It serves no purpose other than saving the user a couple of key strokes. Yet, it makes the current code much more complicated than it should be (and makes validating the options much more difficult, if not impossible). A compact single-interface daemon should serve all imaginable purposes and still be much more maintainable. Cheers, Renato |