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
1 Like
i guess the restart option in the server administrator should be available for the web administrator too?
children:array(
struct(action:"gateway",label:stMenu.services.gateway,hidden: adminType NEQ "web"),
struct(action:"cache",label:stMenu.services.cache),
struct(action:"datasource",label:stMenu.services.datasource),
struct(action:"orm",label:stMenu.services.orm),
struct(action:"search",label:stMenu.services.search,hidden: adminType NEQ "web"),
struct(action:"mail",label:stMenu.services.mail),
struct(action:"tasks",label:stMenu.services.tasks),
struct(action:"schedule",label:stMenu.services.schedule,hidden:adminType NEQ "web"),
struct(action:"update",label:stMenu.services.update,hidden:adminType EQ "web",display:true),
struct(action:"restart",label:stMenu.services.restart,hidden:adminType EQ "web",display:true),
struct(action:"certificates",label:stMenu.services.certificates,hidden:adminType EQ "web",display:true)
)
),
struct(
action:"ext",label:stMenu.extension.label,
children:array(
struct(action:"applications",label:stMenu.extension.applications),
struct(action:"providers",label:stMenu.extension.providers)
)
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).