Giter Club home page Giter Club logo

Comments (5)

jonhadfield avatar jonhadfield commented on June 18, 2024

Hi, What use-case are you thinking of?
Not sure I can see the benefit whilst it's not listening on a port, like a webserver.

from soba.

Bassadin avatar Bassadin commented on June 18, 2024

I'm not sure if it can be done, but I'd love to know if the service/"cronjob" is still running. Not sure if it always exists with an error code if there is an issue?
If it's not really necessary, feel free to close ^^

from soba.

jonhadfield avatar jonhadfield commented on June 18, 2024

Makes sense. I run the docker image on a Synology NAS that you can configure to Auto Restart if the process ends.
One approach to running with cron is to use flock: https://serverfault.com/a/82863/463326. You could set the cron to run every minute (as in the serverfault example) so it automatically restarts if it fails and can check the existence of the lock file to know if it's running.

soba will exit with 1 if there's an error and 0 if you run it once (without a backup interval) and it succeeds.

from soba.

Bassadin avatar Bassadin commented on June 18, 2024

Oh, sorry, I think I phrased that the wrong way.
I'm also using the docker image on a Synology NAS (together with Portainer, but that's not important I presume) and I just set the GIT_BACKUP_INTERVAL to a certain hours value (that's what I meant with "cronjob").
However, I think you're right, just being on the lookout for that 1 error code is probably enough. Seems like I didn't think this through.
Thanks a lot for your extensive answer anyway! I love this image, keep up the awesome work <3

from soba.

jonhadfield avatar jonhadfield commented on June 18, 2024

No problem. Thanks for the feedback!

from soba.

Related Issues (15)

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.