Giter VIP home page Giter VIP logo

pms-docker's People

Contributors

aptalca avatar bryborge avatar chrisallen avatar cron410 avatar dbcm avatar didos avatar double16 avatar enormoz avatar gbooker avatar ilyakam avatar jsclayton avatar kalledk avatar kirrmann avatar maxlabuche avatar mpatton125 avatar squidly271 avatar timecode avatar ziggimon avatar

pms-docker's Issues

Need to move away from cron

Getting cron working to periodically run sync is more trouble than it's worth; instead, create a script that loops infinitely, sleeping for 1 minute between syncs. Continue to use flock.

Container does not stop gracefully; s6-svwait: fatal error

When stopping the container, the expected behavior is for one last config sync to persistent storage to occur. Instead, a few seconds after the container is told to stop, the following error appears: s6-svwait: fatal: supervisor died, and everything is immediately sent a TERM signal followed by a KILL signal 3 seconds later. This was observed in Rancher 1.6, even with ample "drain" time given via the GUI. Need to investigate and determine why graceful stopping isn't happening.

Need to force one last sync when the service/container gets stopped

Find some way to run one last sync to /config-persistent when SIGTERM is received (between Plex stopping and the container exiting). This would hopefully avoid potential corruption issues with transfer of incomplete databases and other files (because rsync will happily grab a file that's actively being written to) as well as capture anything added since the last sync.

Update README file

The README file needs a decent update to explain what this fork is attempting to do re: /config-persistent and the new environment variable (SYNC-PERSISTENT), as well as the amount of storage space this new setup occupies.

Request: additional configuration variables

Add/modify variables to:

  • specify number of retries when the server is busy on an attempted periodic sync
  • specify time between retries when the server is busy on an attempted periodic sync
  • disable the cron service (by setting the cron timing variable to FALSE, or similar)

Eliminate the need to set the SYNC_PERSISTENT env variable

Check to see if /config_persistent is mounted, rather than asking the user to specify a SYNC_PERSISTENT environment variable to run the syncing process.

Also use this as an opportunity to add testing that $HOME_PERSISTENT is mounted before performing syncs; this isn't done consistently right now.

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.