[Devel] Re: [Serdev] dbtext support for serctl

Cesc cesc.santa at gmail.com
Fri Jul 8 21:18:56 CEST 2005


Cool!
Just remember to document how to use each ;)

Cesc

On 7/8/05, Daniel-Constantin Mierla <daniel at voice-system.ro> wrote:
> Hello,
> 
> I have played a bit with DBText serctl you provided and worked pretty
> fine. I was looking to split the serctl in several file:
> 
> sc.common - does the common operations - fifo/start/stop ...
> sc.mysql - does the operations with mysql
> sc.dbtext - does the operations with dbtext
> sc.pgsql - does the operations with postgress
> 
> and have serctl to include the common part and one of the other files
> db-specific. The main purpose for this split is to avoid duplicated or
> too complex scripting. What do you think about?
> 
> I have cleaned up serctl_dbtext and now does only dbtext-specific
> operations, the only drawback is that it cannot check the aliases via
> fifo when adding a new user. I can commit the new serctl_dbtext, but to
> make the full split of the serctl will require some more time, I have to
> integrate also the pgsql script from Klaus Darilion.
> 
> Daniel
> 
> 
> On 07/08/05 18:14, Cesc wrote:
> 
> >Hi,
> >
> >I use it, but not much. In our lab the configuration is pretty stable
> >(no add/remove of users too often), as we are doing research, we are
> >not ser vice providers or anything like that. But i did introduce all
> >the users, removed some, created the basic files and so on when we
> >migrated from mysql to dbtext.
> >I also used to add/remove aliases and entries to the domain table, as
> >well as groups.
> >
> >The main complain i got from my colleagues is that there is an
> >annoying echo message alerting you about the db backend you are using
> >... but the rest, seemed to be ok.
> >
> >About being on one or two files ... i don't mind. Two files would
> >allow for clarity, but also may cause that improvements in
> >serctl.mysql are not ported to serctl.dbtext ...
> >For the rest ... i think you can give it a try ... it should be not
> >too time-consuming ... there is a command to create the dbtext files
> >needed ... from there, just add/remove whatever you need ...
> >
> >Cesc
> >
> >
> >On 7/8/05, Andrei Pelinescu-Onciul <andrei at iptel.org> wrote:
> >
> >
> >>On Jul 01, 2005 at 12:08, Cesc <cesc.santa at gmail.com> wrote:
> >>
> >>
> >>>Hi,
> >>>
> >>>Long ago i sent an updated serctl script with support for dbtext. It
> >>>is not a separate file just for dbtext, it is an updated version where
> >>>through environment variables you can choose the db-backend (mysql or
> >>>dbtext).
> >>>
> >>>It is probably not very neat code due to the limitations of using text
> >>>files, but it is a start. At least adding users, removing and so on is
> >>>easier done this way. It relays on a standard set of columns (the
> >>>order cannot be random, it has to be as in the serctl, otherwise, it
> >>>does not work :D ).
> >>>
> >>>
> >>Do you use it? (as in is it tested :-))
> >>
> >>If nobody objects and it is tested I will commit the changes to HEAD.
> >>Another possibility would be to have 2 versions, the serctl and
> >>serctl.dbtext.
> >>
> >>
> >>Andrei
> >>
> >>
> >>
> >
> >_______________________________________________
> >Serdev mailing list
> >Serdev at iptel.org
> >http://mail.iptel.org/mailman/listinfo/serdev
> >
> >
> >
>



More information about the Devel mailing list