secrets/subscriber don't depend on the services we're watching
this means a watched service can stop and start without killing the subscriber, and that we can watch for services that don't yet exist
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
|
||||
(fn open-services [output-references]
|
||||
(collect [s p (pairs output-references)]
|
||||
(values (assert (svc.open (.. s "/.outputs"))) p)))
|
||||
(values (svc.open (.. s "/.outputs")) p)))
|
||||
|
||||
(fn run []
|
||||
(let [trees {}
|
||||
@@ -89,7 +89,6 @@
|
||||
(each [service paths (pairs services)]
|
||||
(let [new-tree (service:output ".")]
|
||||
(when (changed? paths (. trees service) new-tree)
|
||||
(print "watched path event:" action controlled-service)
|
||||
(do-action action controlled-service))))))))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user