#!/bin/sh BALANCE=/usr/local/bin/balance case "$1" in start) # Bind to the virtual IP (ldap) and load-balance amongst # the two real servers (ldap1 and ldap2). $BALANCE -b ldap.example.com ldap ldap1.example.com ldap2.example.com $BALANCE -b ldap.example.com ldaps ldap1.example.com ldap2.example.com ;; stop) killall $BALANCE ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" esac