/etc/zopectl/zopectlrc
The zopectl runtime configuration file
Zope instances controlling tool
zopectl options
[action
[[instance_name] ...]]
zopectl [options]
action
[[instance_name] ...]
zopectl is an utility capable of managing multiple zope instances. It can apply a sequence of actions to multiple instances. All the instances are described files either in /etc/zopectl/*.conf or in /etc/zopectl/*.ini (see zopectlrc(5)).
Each option need an argument. Each argument must be a comma separated list of instance_name. The special '*' instance_name will trigger the option for all known instances.
For each instance_name resulting from option parsing:
-s, --start
Apply action 'start'
-S, --stop
Apply action 'stop'
-r, --restart
Apply action 'restart'
-f, --force-reload
Apply action 'force-reload'
-a, --access
Apply action 'access'
-p, --pcgi
Apply action 'pcgi'
-i, --init
Apply action 'init'
-d, --delete
Apply action 'delete'
-l, --logrotate
Apply action 'logrotate'
-D, --dump
Apply action 'dump'
If action is provided as argument, zopectl will apply action to any instance_name specified as argument. If no instance_name is specified, zopectl will apply action to all known instance_name.
Unknown instance_name are ignored.
action may be one of the following:
startStarts the instance using /usr/lib/zope/z2.py
stopSends SIGTERM to instance
restartIf instance is running, sends SIGHUP to instance; else falls back to start action
force-reloadStops the instance, reload the configuration end then start it anew
logrotateSends SIGUSR2 to instance which make instance to reopen log files (see Zope's SIGNALS.txt)
accessRegenerate/create the emergency user file
pcgiRegenerate/create the PCGI resource file
deleteStops instance and remove all files and directory used by instance (logs are not removed)
initInitialize instance_name files and directories setting up permissions and ownership, but does not create access file or PCGI resource file.
dumpDump a tagged list 'name: value' of the instance configuration.
Just a test:
# zopectl --start --restart --force-reload stop
This command will apply each action in sequence, so, at the end, it won't do anything of real use.
# zopectl --init new_instance --pcgy new_instance --access new_instance
This command will completly set up the instance named 'new_instance'. create action is deprecated, so you should now use these three.
Your Zope logrotate.conf may include the following lines:
postrotate
zopectl logrotate
endscript
create action is DEPRECATED. Use init instead.
/etc/zopectl/zopectlrc
The zopectl runtime configuration file
/etc/zopectl/*.{conf,ini}
The instances configuration files
3 releases since Debian 2.2 (Potato); the text changed 2 times.
--access since Debian 3.1 (Sarge);
--delete since Debian 3.1 (Sarge);
--dump since Debian 3.1 (Sarge);
--force-reload since Debian 3.1 (Sarge);
--init since Debian 3.1 (Sarge);
--logrotate since Debian 3.1 (Sarge);
--pcgi since Debian 3.1 (Sarge);
--restart since Debian 3.1 (Sarge);
--start since Debian 3.1 (Sarge);
--stop since Debian 3.1 (Sarge);
-D since Debian 3.1 (Sarge);
-S since Debian 3.1 (Sarge);
-a since Debian 3.1 (Sarge);
-d since Debian 3.1 (Sarge);
-f since Debian 3.1 (Sarge);
-i since Debian 3.1 (Sarge);
-l since Debian 3.1 (Sarge);
-p since Debian 3.1 (Sarge);
-r since Debian 3.1 (Sarge);
-s since Debian 3.1 (Sarge).