syntax of /etc/tangorc
|
|
---|---|
Hello, syntax of `/etc/tangorc` should be cautious of its effects. Daemons like tango-db use this file. In `/etc/init.d/tango-db`, some environment variables are not quoted:
In some specific cases, it can generate some error like
It is the case for example if TANGO_HOST definition in `/etc/tangorc` begins with something else than spaces (if it begins with `export ` command). Warning: documentation explains how to define `TANGO_HOST`. If you want to export command, beware to not add the export at the begining of the line but after `TANGO_HOST` definition line. If not, tango-db can fail at startup because not founding. The good practice is probably to source `/etc/tangorc` when needed and then to export TANGO_HOST (or sourcing it in `~/.bashrc` followed by `export TANGO_HOST`)
- Philippe
|