Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

toc-local

Introduction

All servers share the same configurables.

Configuration

All Servers

SectionOptionValueDescription
mainaccepttimeouttimeoutTimeout (ms) to wait for connection from client just after socket setup. Set up by rustart or ruspawn.
addrpathPath of socket file.
closeonacceptintegerNon-zero to set server to exit after servicing a single accept/request. Default is 0.
file_groupgid or group nameGroup owner of socket file.
file_modeinteger (use leading 0 for octal)File mode of socket file.
file_useruid or user nameUser owner of socket file.
groupgid or group nameGroup running server. Default is current group.
launcher :-separated list of absolute path filenamesStart script program (main:path) using another program/launcher. Default is to use what is provided at line 1 of the script (#! ...).
pathpathPath of server program.
pgidpidProcess group id. Set up by rustart or ruspawn.
sdsocket descriptorSocket descriptor passed to the server program. Set up by rustart or ruspawn.
useruid or user nameUser running server. Default is current user.
main.dirs<path>

<uid>:<gid>:<mode>


Create directory at <path> with <mode> setting and ownership of <uid> and <gid>. Specify -1 for <uid> or <gid> for current uid and gid, respectively..

main.env<name>string

Set environment variable of server to run in. Variable substitution is supported using the format "${name}". E.g., "PATH=/usr/local/bin:${PATH}".

Note: the environment resets if/after the server switches user to match client.

main.limits<limitname>.softvalue

Soft limit for limitname. limitname  is one of as, core, cpu, data, fsize, memlock, nofile, nproc, rss, stack. See corresponding RLIMIT_* setting for setrlimit(). Value is integer, empty for current value, "unlimited" for infinity.

<limitname>.hardvalue

Hard limit for limitname .

Notes:

  • main.env settings do not carry over after switching user.
  • main.limits settings carry over after switching user.

pyruss Only

SectionOptionValueDescription

main.logging
(v6.5 and up)

filenamepathPath of log file. For file handler.
handlerfile | syslogHandler to use.
identstringString to identify the server. For syslog handler.
levelintegerPython logging package level.