Hey,  how would I lower start level?

I'm writing a deployment script.

My script was deploying a bundle as:

pkg="$1"
host="$2"
url="http://$host/system/console/install";
curl -f -F"action=install" -F"_noredir_=_noredir_" -F"bundlefile=@$pkg"
-F"bundlestart=start" -F"bundlestartlevel=20" -F"refreshPackages=true" -u
"$cred" "$url" || err "bad"

do you mean I pass bundlestartlevel=1  or something?


And, web console has this:
/system/console/vmstat
where I can POST to change bundleStartLevel and systemStartLevel.
Right now, systemStartLevel=30  and bundleStartLevel=20


On Wed, Oct 12, 2011 at 5:08 AM, Bertrand Delacretaz <[email protected]
> wrote:

> On Tue, Oct 11, 2011 at 9:51 PM, sam ” <[email protected]> wrote:
> > I have a pretty busy sling instance.
> > I would like to deploy bundles offline.
> > 1. shut down the server
> > 2. deploy the bundle (maybe put it in libs folder somewhere)?
> > 3. restart the server.
>
> Could you change the start level instead of shutting down completely?
>
> Bring the level down to N where only the base framework runs, install
> your new bundles which have start level M > N, and bring the level
> back to "application level".
>
> This is similar to bringing a unixish system down to single user mode,
> installing things and going back to higher run levels.
>
> -Bertrand
>

Reply via email to