diff --git a/_extras/clientinfo.env b/_extras/clientinfo.env index 36970e8..ba712bc 100644 --- a/_extras/clientinfo.env +++ b/_extras/clientinfo.env @@ -20,3 +20,17 @@ # * ":" (IPv4) # * "[]:" (IPv6) #CINFO_URI="http://127.0.0.1:1234" + +# The permissions mode for the socket file, if using UDS. +#CINFO_FMODE=0o0600 + +# The permissiosn mode for the socket file directory, if using UDS. +#CINFO_DMODE=0o0700 + +# The GID or group name of the group to chown the socket to. +# Uses the runtime user UID if not specified. +#CINFO_FGRP=http + +# The GID or group name of the group to chown the socket directory to. +# Uses the primary group of the runtime user if not specified. +#CINFO_DGRP=http diff --git a/_extras/clientinfo.service b/_extras/clientinfo.service index d48b3db..192d8ba 100644 --- a/_extras/clientinfo.service +++ b/_extras/clientinfo.service @@ -9,7 +9,7 @@ Description=Return Client Request Information Type=notify # These may also be "httpd", "nginx", etc. User=http -Group=htttp +Group=http Restart=on-failure RestartSec=10 # Not required, but you may create this file and specify the associated commandline argument env vars. @@ -17,6 +17,7 @@ RestartSec=10 # See clientinfo.env for an example. EnvironmentFile=-/etc/default/clientinfo ExecStart=/usr/local/bin/clientinfo +RuntimeDirectory=clientinfo [Install] WantedBy=multi-user.target