![]() |
![]()
| ![]() |
![]()
NAMEpoundctl - control the pound daemon SYNOPSISpoundctl [-kVvh] [-C FILE] [-f FILE] [-i N] [-j] [-K FILE] [-S NAME] [-s SOCKET] [-T TEMPLATE-FILE] [-t TEMPLATE-NAME] COMMAND [/L/S/B] [ARG] DESCRIPTIONDisplays status and controls various objects in the running instance of pound(8) proxy server. The program communicates with the running pound program via a UNIX control socket, or remotely, via HTTP. The URL of the control socket is looked up in the following locatiions, in that order:
The COMMAND argument instructs the program what action it is supposed to perform. Missing COMMAND is equivalent to list. All commands take the /L/S/B argument, which specifies the pound object to apply the command to. Here, L, S, and B stand for the identifiers of listener, service and backend, correspondingly. For listeners and services, both numeric identifiers or symbolic names are allowed. Numeric identifiers refer to the ordinal number of the listener in the configuration file, or service within the enclosing listener (or in the configuration file, if L is -, see below). Symbolic names refer to the names assigned with the corresponding ListenHTTP, ListenHTTPS, or Service statement in the configuration file. The identifier B is always numeric and refers to the ordinal number of the backend in the service. Depending on the command, either B or both /S/B/ may be omitted. For example, the following command will disable backend 2 in service 1 of listener 0: poundctl disable /0/1/2 In contrast, the following command disables the listener 0 itself: poundctl disable /0 A dash in place of L stands for global scope. Thus, e.g.: poundctl disable /-/1 disables the service 1 defined in the global scope of pound.cfg. The following commands are available:
CONFIGURATIONConfiguration is read from file .poundctl located in the user home directory. It is not an error if that file does not exist. Alternative location of the configuration file can be specified via the POUNDCTL_CONF environment variable. Setting that variable to an empty value disables the configuration. The file consists of simple statements and sections, delimited by any amount of newlines. Comments are introduced by #R sign and extend to the end of physical line where it appears. Simple statements consist of a keyword and value separated by any amount of whitespace. Leading and trailing whitespace is ignored. Sections begin with a keyword and value separated by any amount of whitespace as well. They are followed by a newline and any number of statements belonging to that section. Sections end with a word End on a line by itself. The following statements are defined:
Multiple Server sections can appear in the file. They provide a convenient way to organize management of multiple pound servers. You define the settings for each remote pound servers (URL, etc.) in a separate Server section identified by a unique name. Then, when you need to manage that particular server, you identify it by using the -S NAME command line option. Syntactically, each section is Server "NAME" where ellipsis denotes one or more of the following statements: URL, CAFile, CAPath, ClientCert, Verify. TEMPLATESInformation received from pound is formatted as a JSON object. To produce human-readable output, poundctl uses a template, i.e. a text written in a domain-specific language expressly designed for that purpose. The template language complies, in general, with the specification in <https://pkg.go.dev/text/template>. Refer to poundctl.tmpl(5), for a detailed description. Templates are looked up in template file poundctl.tmpl. This file is searched in template search path which is, by default, the file .poundctl.tmpl in the user home directory and the file poundctl.tmpl (without the leading dot) in the program data directory, normally /usr/share/pound. The default search path can be changed from configuration file, using the TemplatePath statement of by setting the environment variable POUND_TMPL_PATH, which see. To examine the default value of the search path, use the -V command line option. The template file to use can be requested from the configuration file, via the TemplateFile statement, or from the command line using the -t option. In this case, template search path in not searched and the supplied file is used verbatim. Unless instructed otherwise, poundctl uses the template "default". You can request another template name using the TemplateName configuration statement, or from command line, using the -T option. The default poundctl.tmpl file defines two templates: default and xml. OPTIONS
ENVIRONMENT
SEE ALSOpound(8), poundctl.tmpl(5). AUTHORWritten by Robert Segall, Apsis GmbH, and Sergey Poznyakoff. REPORTING BUGSReport bugs to <gray@gnu.org>. You may also use github issue tracker at https://github.com/graygnuorg/pound/issues. COPYRIGHTCopyright © 2002-2010 Apsis GmbH.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
|