Skip to content

Daemon Configuration

bethlynnatpsc edited this page May 11, 2017 · 7 revisions

Example inf/$DEPLOYMENT/$DEPLOYMENT.dcfg

``

# list clients by hostname. Here a series of clients (client1 through client6) are also named.

examplecom_clients="
 foo.example.com
 bar.example.com
 client%02d:1-6.example.com
"
# more clients from an additional site example dot net
examplenet_clients="
 baz.example.net
 waldo.example.net
 fred.example.net
"
export USOCK_KEEPALIVE=1
export USOCK_KEEPALIVE_CNT=3
export USOCK_KEEPALIVE_IDLE=1200
export USOCK_KEEPALIVE_INTV=300

mail_from="[email protected]"
mail_to="[email protected] [email protected]"
: ${bounce_host:=smtp.example.com

# Newer libgcrypt has a bizarre multithreaded initialization procedure
# which is broken with the way SLASH2 uses it.
rm -f /etc/system-fips

examplecom_cli_opts="srcdir=/usr/local/src/slash2-stable%CTL_SOCK_FILE=/var/run/\\x25n.$prof.\\x25h.sock%args=-omapfile"
examplenet_cli_opts="srcdir=/usr/local/src/slash2-stable%CTL_SOCK_FILE=/var/run/\\x25n.$prof.\\x25h.sock%args=-omapfile"

set -- $(cat <<EOF
$(mkclients $example_cli_opts $example_clients)

$(mksliods ionhostname2.example.com 8 'sdp5(ib0:%d)' /var/run/\\\\x25h-sliod%d.sock srcdir=/opt/packages/slash2/ion/p%share%bounce)
$(mksliods ionhostname.example.com 1 'tcp4(ens3f0)' /var/run/\\\\x25h-sliod%d.sock srcdir=/usr/local/src/slash2-stable)
$(mksliods ionhostname.example.net 1 'tcp4(ens3f0)' /var/run/\\\\x25h-sliod%d.sock srcdir=/usr/local/src/slash2-stable)


EOF
)

``

Clone this wiki locally