Ticket #283: openvpn-2.3.1-init.patch
File openvpn-2.3.1-init.patch, 784 bytes (added by , 10 years ago) |
---|
-
openvpn-2.3.1/distro/rpm/openvpn.init.d.rhel
old new 146 145 errors=0 147 146 successes=0 148 147 for c in `/bin/ls *.conf 2>/dev/null`; do 149 bn=${c%%.conf} 150 if [ -f "$bn.sh" ]; then 151 . $bn.sh 152 fi 153 rm -f $piddir/$bn.pid 154 $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work 155 if [ $? = 0 ]; then 156 successes=1 157 else 158 errors=1 148 if [ -s $c ]; then 149 bn=${c%%.conf} 150 if [ -s "$bn.sh" ]; then 151 . $bn.sh 152 fi 153 rm -f $piddir/$bn.pid 154 $openvpn --daemon --writepid $piddir/$bn.pid --cd $work --config $c 155 if [ $? = 0 ]; then 156 successes=1 157 else 158 errors=1 159 fi 159 160 fi 160 161 done 161 162