source: npl/internetserver/libreswan_conf/root/service/ipsec/start

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 370 bytes
Line 
1#!/bin/bash
2TRY=30
3if svc -u /service/ipsec 2>&1 | grep supervise ; then
4    exit 0
5fi
6
7while ! ipsec whack --status 2>/dev/null|grep  "^000 interface" &>/dev/null; do
8    echo "Waiting for ipsec to start.. ($TRY)"
9    sleep 1
10    (( TRY-- ))
11    if [ $TRY -eq 0 ]; then
12                echo "Timeout while waiting for ipsec to start"
13                exit 1
14    fi
15done
Note: See TracBrowser for help on using the repository browser.