Giter VIP home page Giter VIP logo

Comments (4)

FedeDP avatar FedeDP commented on June 21, 2024

Hi! Thanks for opening this issue!

Config file: file I/O error at line 0.

I am not really sure what's causing this issue; never saw that! Can you share first 5 lines of /etc/default/clight.conf file?

Then I receive errors like this:

Yep, because if you copy it to your local config, it won't find the included config files anymore since they are provided as relative paths, so your fix is correct.
To fix the latter, i think i should move to always use absolute path, so that wherever the configs are, the includes will be fine.

from clight.

FedeDP avatar FedeDP commented on June 21, 2024

Well, i was wrong: since i used config_set_include_dir(&cfg, dirname(config_file_dup));, it means that each config will resolve its includes relative to its folder.
This is the correct behavior IMHO, so if you copy /etc/clight/clight.conf to your local folder, you are expected to also copy interesting configs from /etc/clight/modules.conf.d/ (ie: the ones you want to override) and then edit the copied clight.conf to only include needed configs.

from clight.

hunterzero99 avatar hunterzero99 commented on June 21, 2024

I actually don't have a file at /etc/default/clight.conf

[user@home ~]$ cat /etc/default/clight.conf
cat: /etc/default/clight.conf: No such file or directory

from clight.

FedeDP avatar FedeDP commented on June 21, 2024

I actually don't have a file at /etc/default/clight.conf

That actually explains a lot!
Indeed there was a bug where the code always tried to parse /etc/default/clight.conf even when not present.
It is fixed in latest master.

from clight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.