WebGUI
      Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.

Maintenance Mode Control

User: mlamar
Date: 5/25/2006 5:35 pm
Views: 5111
Rating: 15    Rate [
|
]

The standard WebGUI upgrade.pl script will turn on maintenance mode while it is upgrading a site.  This contributed script gives an admin the ability to turn on (and off) maintenance mode for a specific site for other reasons.  

When in maintenance mode the site displays the static webpage docs/maintenance.html. 



Replies

Re: Maintenance Mode Control
User: JT
Date: 1/29/2008 9:33 am
Rating: 0    Rate [
|
]
Status: Approved
Added to the core in 7.5.1

Re: Maintenance Mode Control
User: alafondo
Date: 5/30/2006 5:26 am
Rating: 26    Rate [
|
]
Status: Approved

I put this script into WebGUI's sbin directory and from that directory have been made a command "--start" but nothing happens.

How should I use this script?

Thanks!


Re: Maintenance Mode Control
User: mlamar
Date: 5/30/2006 11:19 am
Rating: 16    Rate [
|
]
Status: Approved

There is a --help option which will give you all the options. But the main idea is that you run it as follows:

% perl maintenanceMode.pl --configFile=<your-config-file-name> --start

 This will put the site controled by that config file into maintenance mode, and --stop will take it out.  A few notes: you will probably need to be super user to run this properly.  Also <your-config-file-name> should not include the path.

 Hope this helps.

  -Michelle
 


Re: Maintenance Mode Control
User: alafondo
Date: 5/30/2006 2:24 pm
Rating: -7    Rate [
|
]
Status: Approved
Thanks, now works well.

Re: Maintenance Mode Control
User: alafondo
Date: 9/3/2006 3:32 pm
Rating: -22    Rate [
|
]
Status: Approved

It seems that it doesn't work with WebGUI-7.0.6 /perl5.8.8.

It returns an error.

Could anyone help.

Thanks 


PreviousBackNext