I recently released 'zopectl', a python script that acts as a configurable front end to the z2.py script, implementing the defacto standard unix process control commands: zopectl start, zopectl stop, zopectl restart. I wrote it to simplify management of a server that runs several zope instances, so it can also be used to start/stop/restart a collection of zope sites or any subset of that collection ('zopectl start mysite'). Configuration is based on a master file, with the ability to override any parameter for specific sites. http://www.zope.org/Members/rdmurray/zopectl While I orginally wrote it for the production machine, I'm finding it even more useful on my development machine where I have any number of Data.fs files for various projects. I now use an INSTANCE_HOME setup where I have a directory stucture like this: /usr/local/zope Zope222 Zope224 Zope230a1 sites devsite1 devsite2 devsite3 In /usr/local/zope I have a zopectl.conf file that specifies my "standard" setup for my development sites. In the individual devsite directories I have zopectl.conf files that override these global settings as necessary. Zopectl lets me set different versions of zope to run, and even different versions of python. Setting up an override configuration file has proven to be *much* easier than editing individual site start and stop scripts. And by putting zopectl in my path, I no longer have to cd into the site directory in order to do a start and stop. Anyway, I'm hoping others will find it useful, too. The version number (and the comments in the readme about bugs) are due to the fact that it hasn't seen much testing yet. It's been solid for me so far, and I've now exercised quite a few more parameters than my README comments would make it appear. --RDM
Zope mailing lists wrote:
I recently released 'zopectl', a python script that acts as a configurable front end to the z2.py script, implementing the defacto standard unix process
There exists in CVS (and perhaps 2.3.whateveralphaversionitis?) a zctl.py that also includes zeo controls, you may want to have a look at it as well. I was working on a similiar project. I am thinking about extending this one. Bill Anderson
On Tue, Jan 09, 2001 at 10:12:36AM +0000, Chris Withers wrote:
Zope mailing lists wrote:
I recently released 'zopectl', a python script
...gak... now is that a 'python script' or a 'Python Script'? ;-)
*grinz*
Damnnation, Chris, everyone knows that it is supposed to be spelled Python Thingy. "I recently released 'zopectl', a Python Thingy"... 'Please go wash your hands before your shake hands with me!'
Chris
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Tue, 9 Jan 2001 jpenny@universal-fasteners.com wrote:
Damnnation, Chris, everyone knows that it is supposed to be spelled Python Thingy.
"I recently released 'zopectl', a Python Thingy"...
'Please go wash your hands before your shake hands with me!'
Hmm. All kidding aside, Chris is right. This *is* the problem with "python script" that was pointed out during the name discussion. My use of "python script" is the traditional Unix/OS one: "a [shell] script written in python". Oh, well...fortunately the users most likely to be confused are the ones least likely to be using scripts at the os level. --RDM
Zope mailing lists wrote:
Hmm. All kidding aside, Chris is right. This *is* the problem with "python script" that was pointed out during the name discussion. My use of "python script" is the traditional Unix/OS one: "a [shell] script written in python".
This is continuing well beyond amusement, :)! Name it Z'Python Script / z'python script. It's pronounceable (Sounds cool, slightly german), looks distinctive, and, well, would end the naming problems for Zope specific uses of, otherwise general, terminology.... Z'Terminology of the *Z* Object Publishing Environment: z'python script, or Z'Python Script if you like capping ;), z'perl script, z'python programs (makes sense for Zope programs...), z'poorly named language Thingy. Zope is always z'cool! -Dave
Oh, well...fortunately the users most likely to be confused are the ones least likely to be using scripts at the os level.
--RDM
participants (5)
-
Bill Anderson -
Chris Withers -
David Kankiewicz -
jpennyï¼ universal-fasteners.com -
Zope mailing lists