Code Monkey home page Code Monkey logo

Comments (7)

StrictLine avatar StrictLine commented on July 29, 2024 1

it'd be more elegant to define an environment variable instead of the hard-coded 5.

from docker-cloudflare-ddns.

StrictLine avatar StrictLine commented on July 29, 2024

I'd also appreciate it, because I guess at the moment, it's hard coded, right?
root/etc/services.d/crond/run: /usr/sbin/crond -f -l 8 -d 6

  • runs in the foregrund
  • log level 8
  • log level 6 (stderr)
    ... but I haven't found the crontabs yet.

I'm new to the docker, that's why I cannot make you a solution proposal/PR.

from docker-cloudflare-ddns.

Sigi-cz avatar Sigi-cz commented on July 29, 2024

based on this #11 it runs every 5 minutes (and it does) but it would be nice to have it in README.md so users don't need to search closed issues for that info.

from docker-cloudflare-ddns.

StrictLine avatar StrictLine commented on July 29, 2024

You're right, thanks for refering! This should be the permalink for the line where this is set up:

echo "*/5 * * * * /etc/cont-init.d/50-ddns" > /var/spool/cron/crontabs/root

from docker-cloudflare-ddns.

ghzgod avatar ghzgod commented on July 29, 2024

it'd be more elegant to define an environment variable instead of the hard-coded 5.

I agree with this, for now I edited it using crontab -e command and changing it to 10. I too would like an environment variable to set the interval.

Edit: like you mentioned, I edited the 30-cloudflare-setup file instead so it is persistent across container reboot.

from docker-cloudflare-ddns.

stale avatar stale commented on July 29, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from docker-cloudflare-ddns.

Dulanic avatar Dulanic commented on July 29, 2024

Submitted a PR for that a ability to customize. We'll see if accepted. Also would then document the default.

from docker-cloudflare-ddns.

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.