zorpctl is primarily used to control Zorp instances. It is able to start an instance, to stop an already running instance, and to query version information of the currently installed Zorp Firewall.
zorpctl is a wrapper script around the main zorp binary, first setting the necessary environment variables (for example LD_LIBRARY_PATH and PYTHONPATH) and doing whatever is required for the currently requested operation.
To start an instance you'll need to issue a zorpctl start <instancename> command. Empty instance name refer to all instances, thus a simple zorpctl start will start all instances listed in your instances.conf file.
An instance is assumed to be running if its pidfile exists. Zorp creates this pidfile on startup, and deletes during exit, so this is a safe assumption. However zorpctl will not be able to stop instances without a pidfile.
zorpctl <operation> [options] |
Where operation is one of "start", "stop", "restart" or "version" and options is usually a list of instance names.
Table 2-2. Command line arguments of zorpctl
Argument | Description |
---|---|
start | Start the given or all instances. |
stop | Stop the given or all instances. |
restart | Stop and then start the given or all instances. |
version | Display version and compilation information of your Zorp installation. |