Annvix
Personal tools



/User Guide/ipsvd

From Annvix

Configuring services with ipsvd

Ipsvd default environment variables

Ipsvd uses the following default environment variables:

  • IP - IP address of service (default = 0)
  • PORT - Port of the service
  • MAX_CONN - Maximum number of connections (default = 20)
  • MAX_PER_HOST - Maximum number of connections per ip (default = 5), you can also add a suffix of :msg for an error message to be displayed.
  • MAX_BACKLOG - number of backlog of TCP SYNs (default = 20)
  • HOSTNAME - name of the host.

Sample run script

#!/bin/execlineb

/bin/fdmove -c 2 1

/sbin/chpst -e /etc/sysconfig/env/tcpsvd
/sbin/chpst -e ./env/

/bin/multisubstitute {
    import -D "localhost" HOSTNAME
    import -D 0 IP
    import -D ? PORT
    import -D 20 MAX_CONN
    import -D 5 MAX_PER_HOST
    import -D 20 MAX_BACKLOG
}

/sbin/tcpsvd -v -l $HOSTNAME -x peers.cdb -c $MAX_CONN -C "$MAX_PER_HOST" -b $MAX_BACKLOG $IP $PORT
    ... <rest of the command>

Resources

<< Return to User Guide





Sponsors: Loans - Mortgages - Loans - Phoenix Landscaping