[pkg-wicd-maint] Bug#911184: wicd-daemon: Please make log file location configurable

Axel Beckert abe at debian.org
Wed Oct 17 01:30:15 BST 2018


Control: tag -1 + moreinfo

Hi Dmitry,

Dmitry Bogatov wrote:
> I am working on integrating wicd-daemon with Runit supervision
> system, which assumes logging on stdout.

Cool!

> please make log file location configurable at run time.
> 
> In most cases, daemons have option to specify log file location, and
> providing /dev/stdout fulfils my needs. Wicd, on other hand have path
> to log file hardcoded in setup.py.

There is indeed a directory path (not file path!) in setup.py, but the
hardcoded file name is actually in wicd/wicd-daemon.py.

Then again, wicd/logfile.py seems to have already support for logging
to stdout or stderr.

And as I read the code from wicd/wicd-daemon.py lines 1803 to 1827 and
lines 1882 to 1905, starting the daemon with the option --no-stdout
(sic!) should do what you want. Alternatively try --no-stderr

Can you check if these options already help for your needs?

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the pkg-wicd-maint mailing list