All pastes #40490 Raw Edit

Anonymous

public text v1 · immutable
#40490 ·published 2006-02-07 05:41 UTC
rendered paste body
#!/bin/sh
# chkconfig: - 55 25
# description: Wrapper to start sshd bound to multiple IPs
IP="eth0 eth1"
if [ -f /etc/vservices/sshd.conf ] ; then
    . /etc/vservices/sshd.conf
fi
IPC=`for n in $IP; do echo "--ip $n"; done`
exec /usr/sbin/chbind $IPC /etc/init.d/sshd $*