River4 v0.119

17 views
Skip to first unread message

Dave Winer

unread,
Aug 21, 2015, 10:31:01 AM8/21/15
to river4
A new mechanism to cause River4 to quit, used in the ec2ForPoets updating mechanism. 

https://github.com/scripting/river4#v0119----82115-by-dw

Dave


Dave Winer

unread,
Aug 22, 2015, 11:44:38 AM8/22/15
to river4
Note -- I changed the implementation of River4's change detection, made it much simpler.

If the feature is enabled (it's disabled by default) we check the mod date of river4.js every second to see if it's changed.

If it has we do a process,exit (0) -- which presumably will cause the app to be re-launched, thus running the new version.

The previous version was way too complicated, this works better and is much simpler.


Dave

Frank McPherson

unread,
Aug 25, 2015, 10:35:34 AM8/25/15
to river4
Does this remove the need for forever? 

--
GitHub repository: https://github.com/scripting/river4
How to ask for help: http://scripting.com/2014/03/19/howToAskForHelpWithSoftware.html
---
You received this message because you are subscribed to the Google Groups "river4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to river4+un...@googlegroups.com.
To post to this group, send email to riv...@googlegroups.com.
Visit this group at http://groups.google.com/group/river4.
To view this discussion on the web visit https://groups.google.com/d/msgid/river4/1ef1d79d-a7a4-4657-823d-0d31ce715d78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

From the tablet of Frank McPherson
frank.m...@gmail.com

Dave Winer

unread,
Aug 25, 2015, 11:07:21 AM8/25/15
to riv...@googlegroups.com
When River4 quits, something has to launch it. 

So we're actually *depending* on forever, or something like it, to be watching over River4, and relaunching it when it quits.

Dave



Reply all
Reply to author
Forward
0 new messages