X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdcached.pod;h=d6bfec39c41bbd2afb071c65d268b841a5b219fa;hp=22a74e9e1344a6afad6f2b42fb0f40fbc1f91774;hb=97b95055eaa2de527dc1a75f1c9973afbd07410e;hpb=732528deae5d3d282ef07e2fbb9372f2270c3668 diff --git a/doc/rrdcached.pod b/doc/rrdcached.pod index 22a74e9..d6bfec3 100644 --- a/doc/rrdcached.pod +++ b/doc/rrdcached.pod @@ -44,7 +44,7 @@ section below. Tells the daemon to bind to I
and accept incoming connections on that socket. If I
begins with C, everything following that prefix is interpreted as the path to a UNIX domain socket. Otherwise the address or node -name are resolved using getaddrinfo. +name are resolved using C. For network sockets, a port may be specified by using the form CI
B<]:>I>. If the address is an IPv4 address or a fully @@ -66,15 +66,41 @@ domain socket B start with a slash in the second case! If the B<-l> option is not specified the default address, C, will be used. -=item B<-s> I +=item B<-s> I|I -Set the group permissions of the UNIX domain socket. The option accepts either +Set the group permissions of a UNIX domain socket. The option accepts either a numeric group id or group name. That group will then have both read and write -permissions to the socket and therefore able to send commands to the daemon. This +permissions (the socket will have file permissions 0750) for the socket and, +therefore, is able to send commands to the daemon. This may be useful in cases where you cannot easily run all RRD processes with the same user privileges (e.g. graph generating CGI scripts that typically run in the permission context of the web server). +This option affects the I UNIX socket addresses (the following +B<-l> options), i.e., you may specify different settings for different +sockets. + +The default is not to change ownership or permissions of the socket and, thus, +use the system default. + +=item B<-m> I + +Set the file permissions of a UNIX domain socket. The option accepts an octal +number representing the bit pattern for the mode (see L for +details). + +Please note that not all systems honor this setting. On Linux, read/write +permissions are required to connect to a UNIX socket. However, many +BSD-derived systems ignore permissions for UNIX sockets. See L for +details. + +This option affects the I UNIX socket addresses (the following +B<-l> options), i.e., you may specify different settings for different +sockets. + +The default is not to change ownership or permissions of the socket and, thus, +use the system default. + =item B<-P> I[,I[,...]] Specifies the commands accepted via a network socket. This allows @@ -86,7 +112,7 @@ For example, to allow the C and C commands one could specify: rrdcached -P FLUSH,PENDING $MORE_ARGUMENTS -The B<-P> option effects the I socket addresses (the following B<-l> +The B<-P> option affects the I socket addresses (the following B<-l> options). In the following example, only the IPv4 network socket (address C<10.0.0.1>) will be restricted to the C and C commands: