Commit Graph

20 Commits (master)

Author SHA1 Message Date
Stephen Lee ce90558466 avoid blocking USR1 from slave (#32) 2019-04-27 13:48:52 +10:00
Jaime Pillora 2e4decb22e add change detection to file fetcher, cleanup code, fix spellings, swap example code to use file fetcher 2017-08-24 20:24:47 +10:00
mrfly ef5fb99e14 add file fetcher (#19) 2017-08-24 16:27:27 +10:00
Diego Medina 75c69b4823 If fetcher is disabled, don't test to move files
If the user only wants graceful restarts from this library, and the user running the go program doesn't have write access to the path to the binary, overseer fails to start with an error 

`[overseer] disabled. run failed: cannot move binary (exit status 1)`

This commit checks if fetching is enabled, if not, it avoids the move check
2017-07-26 07:48:54 -04:00
Brandon Nelson e52c6c7ca9 Adds the current master env to our testing env 2017-03-15 11:42:08 -07:00
Jaime Pillora cfea0d4997 fix rare nil ptr panic 2016-09-14 23:04:36 +10:00
Jaime Pillora be5b0b50d8 * fix s3 .gz file retrieval
* show detailed error when fail to run new binary
2016-06-26 22:06:22 +10:00
Jaime Pillora a815be9c8e added github fetcher, added auto-extraction of gzip archives (gzip encoded responses are already supported) 2016-06-21 23:09:12 +10:00
Jaime Pillora adaa3fc1d6 make debug prints less spammy 2016-04-11 00:35:35 +10:00
Tamás Gulácsi 1956e2633b Chmod and Chown may not be supported 2016-04-01 22:37:28 +02:00
Jaime Pillora 27643501ed Pass binary path to slave process, expose in overstate.State, added multi-platform example to docs. 2016-03-14 10:38:48 +11:00
Jaime Pillora a5ef7ca2eb added NoRestart option 2016-02-17 11:25:17 +11:00
Jaime Pillora 7e03d62308 Added many more docs. Added an extra log level: warn, which is on by default. Normal operation are logs, unexcepted events are warnings. Added IDs to slave logs. 2016-02-13 17:11:17 +11:00
Jaime Pillora 41359f8610 Swap back to unix mv for moves (handles cross portion moves, copy+delete). Added more docs. 2016-02-13 02:22:27 +11:00
Jaime Pillora 29e33ed1c7 use bin dir as tmp dir for next binary, copy owner 2016-02-09 17:01:06 +11:00
Jaime Pillora 6df2e197eb rename to overseer, allow manual restarts with USR2, fetcher now optional, added fetcher init method 2016-02-09 14:46:45 +11:00
Jaime Pillora 887f12bfaf fixed on linux with mv 2016-02-09 00:20:50 +11:00
Jaime Pillora f623267271 rewrite complete, mostly working now 2016-02-08 12:06:54 +11:00
Jaime Pillora 8f42cc8800 somewhat working, though still buggy 2016-02-08 03:05:31 +11:00
Jaime Pillora 9ef850b1bc progress on v2, graceful restarts not working yet 2016-02-08 01:38:24 +11:00