Re: Bring enbd back in Debian?
Bas van Schaik <[email protected]> Tue, 14 Mar 2006 16:13:24 +0100
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
Peter T. Breuer wrote: >"Also sprach ptb:" >(commenting on a comment) > > >>>Also the init.d script /etc/init.d/enbd can't be in two packages at the >>>same time. To be honest, I don't think many people will run client & >>> >>> > >To split onto two scripts I need a common file containing the functions >defined in the present script. Where should it go (:-)? And in which >package? > >If there is no common functions script, then the present script code >must be repeated twice in the new scripts. To me it looks inevitable >that there should be a -common package. > > Hmmm... You've got a point here! Maybe it's a better idea not to split the init-script, and put the common init script in a common-package. So, the /etc/init.d/enbd script will parse both client and server configuration files and will start/stop the clients and servers. However, if the scripts detects a server configuration file on a system without the enbd-server binaries, it should exit with an error. Another option is a script-library in the common-package which will be used by both the client and server init-script. I don't think this is a very nice solution, but it's a solution. Of course it is still possible not to split the configuration files, maintain /etc/enbd.conf and put it in the same common-package, together with the init-script. However, I prefer the splitted setup of the configuration files and manpages, but that's just my huble opinion ;). I really appreciate the huge amounts of work you've already put in this little "project"! Cheers, -- Bas