Possible to "restart" just a single web context from code

Is there any way in Lucee to restart a single web context in a scenario where you have multiple contexts in a single server context?

It should be a soft restart that does not effect any other web contexts and that completely wipes out anything (session, memory, etc) associated with the context that wants to be restarted.

Possible?

<cfadmin
    action="restart"
    type="web|server"
    password="password"
    remoteClients="arrayOfClients">

Looks like its possible, yes.

HTH

– Denny

2 Likes

those cfadmin docs could be made a tiny bit more user friendly…

2 Likes

Super, thanks @ddspringle :slight_smile:

1 Like

i guess the restart option in the server administrator should be available for the web administrator too?

https://luceeserver.atlassian.net/browse/LDEV-1821

1 Like

Yeah, presumably we should be able to auto generate the docs for this. I’m not sure how Micha would feel about this, but makes sense to me. Special section with index page that links to invididual pages for each of the cfadmin tag actions.

I’ve had it on my list to expose this stuff in docs, the cfadmin tag doesn’t have any meta data
and is excluded from the tag list

http://127.0.0.1:8888/lucee/doc/components.cfm?item=org.lucee.cfml.Administrator

Nope, As of now we can’t able to restart single web context. From the code you can restart the server only. Using below:

<cfadmin
    action="restart"
    type="server"
    password="password">

May be it will added in future 5.3 release. Any way @micstriit decide about this.

Yes indeed. I tried using type=“web” and it threw an error about permissions (I had correct password).

new issue created [LDEV-1839] - Lucee

1 Like