Re: Command to start Sling launchpad, expand files, then exit

2014-07-29 Thread Bertrand Delacretaz
Hi, On Wed, Jul 23, 2014 at 3:07 PM, David Bosschaert david.bosscha...@gmail.com wrote: ... So, e.g.: -x (objectClass=o.a.s.SlingReady) or -x Where the latter uses a default filter... I thought a bit more about this, and if you implement something it could be made generally useful by

Command to start Sling launchpad, expand files, then exit

2014-07-23 Thread David Bosschaert
Hi all, I was wondering whether there is a way to start the Sling launchpad, let it do the expansion of all the embedded files and then exit. I'd like to be able to do this from a shell script, so something straightforward would be nice :) Thanks! David

Re: Command to start Sling launchpad, expand files, then exit

2014-07-23 Thread David Bosschaert
, it should work. java -jar sling.jar start -j localhost:0 java -jar sling.jar stop -j localhost:0 Of course, the start command should open a different terminal and also the stop command. -- View this message in context: http://apache-sling.73963.n3.nabble.com/Command-to-start-Sling-launchpad

Re: Command to start Sling launchpad, expand files, then exit

2014-07-23 Thread David Bosschaert
Or maybe a command line option with an OSGi service filter? When a service that matches the filter is registered then shut down the container... Maybe with a reasonable default too. So, e.g.: -x (objectClass=o.a.s.SlingReady) or -x Where the latter uses a default filter... Just a thought :)

Re: Command to start Sling launchpad, expand files, then exit

2014-07-23 Thread Carsten Ziegeler
Why do you want something we already have? We have the startup support and you can simply register a listener doing the trick. That is in fact our ready service. Let's not overcomplicate this thing Carsten 2014-07-23 15:12 GMT+02:00 Bertrand Delacretaz bdelacre...@apache.org: On Wed, Jul 23,

Re: Command to start Sling launchpad, expand files, then exit

2014-07-23 Thread Bertrand Delacretaz
On Wed, Jul 23, 2014 at 4:07 PM, Carsten Ziegeler cziege...@apache.org wrote: ...We have the startup support and you can simply register a listener doing the trick... What do you mean by doing the trick? Validating that health checks pass before exiting? -Bertrand

Re: Command to start Sling launchpad, expand files, then exit

2014-07-23 Thread Carsten Ziegeler
Even that, sure - the listener is triggered by our ready service and can then simply execute all (or a configured set of) health checks And then signal this to somewhere - in other installations we use a simple socket connection for the signal - observer waits for some bytes on that socket, the