Hello Henrique, On 27/03/2010, at 08:03, Henrique Carvalho Alves wrote:
> I have a virtual server setup similar to that in the Cookbook for maintenance > mode. Before I used to login the admin, change vserver priorities and > restart. Lately, I've been using the active/inactive feature in the vserver. > > Now, I would like to know if there's any already developed way to do this in > the command line, similar to Apache's enable site command. I need to automate > the maintenance mode switching in a cron script. > > My first approach was going to parse cherokee.conf for my maintenance > vservers, and edit the file to change priorities (I couldn't find which flag > I could set just for enable/disable vserver). But this requires an ugly > script and constant maintenance if I change vserver configs. > > I looked on cherokee-tweak, as thought it would be a good command to be > available there, but no avail. > > So, if there's any cleaner way do this, I would appreciate learning about. If > not, I recommend as a feature having a command like > enable-vserver/disable-vserver on cherokee-tweak. <Nod>. It certainly sounds like an interesting improvement for cherokee-tweak. Could you please log a bug for it? http://bugs.cherokee-project.com/new Thanks for the feedback! -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
