On Jan 7, 2020, at 17:30, drew Roberts <[email protected]> wrote: > Store all bash scripts run via macro carts with RN commands in those macro > carts. Have rivendell create the bash scripts if it finds them missing.
It’s an intriguing idea. It would address one of the main practical “gotchas” with administering a Rivendell system: the fact that elements that live in the filesystem (scripts, cron jobs, etc) tend to get out of sync with the ones that live in the database. You can see this particularly when a host instance is moved to new hardware: it’s not unusual to find that things like RLM plug-ins don’t work properly because the relevant configuration files were inadvertently ‘left behind’ on the old hardware. It’s a major reason why the PyPAD system in v3.x can store script configurations in the DB in addition to the filesystem. > Should a separate folder structure be created for the storage of these bash > (and other?) scripts be used as opposed to the /home/rd (or whatever) > location I general use? Methinks that that would be an implementation detail; perhaps some sort of ‘sandbox’ environment that would have a predefined and well-known security context. No reason that other interpreted languages besides Bash scripts couldn’t be supported; that’s what bang paths are for. (One could even extend it to binary executables, but you’d then run into problems with cross-arch compatibility). > When setting up a macro cart, and adding a line that has an RN command, > should rdlibrary import that bash/shell script? It’d be a whole new kind of cart. A ‘script cart’ perhaps? > Should they just live in rivendell and not in the file system and just be > created every time they need to be run? Would this be too slow? Given the existing overheads of accessing the DB, I suspect that it wouldn’t be much slower than the existing ‘RN’ implementation. Cheers! |---------------------------------------------------------------------| | Frederick F. Gleason, Jr. | Chief Developer | | | Paravel Systems | |---------------------------------------------------------------------| | A room without books is like a body without a soul. | | | | -- Cicero | |---------------------------------------------------------------------|
_______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
