#46 Add runtime logging config option to cnid dbd backend

closed
franklahm
None
9
2012-08-27
2009-03-30
franklahm
No

Add runtime logging config option to cnid dbd backend in sync with afpd.
Currently cnid_metad and cnid_bdb log to syslog with log_debug and there is now way to change that like it can be done for afpd in afpd.conf.

Discussion

  • franklahm
    franklahm
    2009-03-30

    I think I'm gonna ad a "-l" option to cnid_metad that takes the same format afpd.conf uses. That string can be passed directly to log_setup in logger.c.
    As logger stored fd's wich are not close_on_exec this will possibly also be enough to configure cnid_dbd (which is exec'ed from cnid_metad).

     
  • franklahm
    franklahm
    2009-03-30

    As logger stored fd's wich are not close_on_exec this will possibly also
    be enough to configure cnid_dbd (which is exec'ed from cnid_metad).

    This is rubbish of course. I'll pass another arg with execlp instead and call setuplog from cnid_dbd with that.

     
  • franklahm
    franklahm
    2009-03-31

    Done. Missing: documentation.

     
  • franklahm
    franklahm
    2009-03-31

    Updated manpages. To do: startup script.

     
  • franklahm
    franklahm
    2009-03-31

    Added cnid_dbd and metad log config option to netatalk.conf and most startup scripts.