Closed zimbatm closed 8 years ago
The last commit depends on https://github.com/pusher/stronghold/pull/5
What's the motivation/context behind the change?
I want to convert an env-configured program to use stronghold as a configuration source. With the second change I can now prefix my program with stronghold-cli --path /some/path --env --run my-program
and put that in an init script.
The last change is motivated by the fast that I want to detect if the configuration has changed and if the process needs restarting. It's a bit hacky but I can read from /proc/<pid>/environ
, find out the ETag and compare it to my own invocation of stronghold-cli. Then put that as a buddha pre-check.
Ah okay, cunning :-) :+1:
/cc @seeemilyplay
Tested with
stronghold-cli --path /some/path --env --run env