diff options
author | Bernhard Tittelbach <service-anytun@tittelbach.org> | 2009-12-05 16:30:03 +0000 |
---|---|---|
committer | Bernhard Tittelbach <service-anytun@tittelbach.org> | 2009-12-05 16:30:03 +0000 |
commit | a2b3dd2b12d5d5e2db0d415593ff8e447f8f87f5 (patch) | |
tree | 32d7259c45f4a5fcb609346ffbb0bb815678a27a /gentoo-linux | |
parent | .. (diff) |
no custom restart
Diffstat (limited to 'gentoo-linux')
-rwxr-xr-x | gentoo-linux/net-misc/anytun/files/anytun-0.3.1.init | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gentoo-linux/net-misc/anytun/files/anytun-0.3.1.init b/gentoo-linux/net-misc/anytun/files/anytun-0.3.1.init index a21f4ee..681602c 100755 --- a/gentoo-linux/net-misc/anytun/files/anytun-0.3.1.init +++ b/gentoo-linux/net-misc/anytun/files/anytun-0.3.1.init @@ -158,29 +158,3 @@ reload () { fi fi } - -restart () { - if test -z "$VPN" ; then - for PIDFILE in `ls $VARRUN_DIR/*.pid 2> /dev/null`; do - NAME=`echo $PIDFILE | cut -c17-` - NAME=${NAME%%.pid} - ebegin "Restarting ${DESC} VPN: ${NAME}" - stop_vpn - start_vpn - eend $? - done - else - if test -e $VARRUN_DIR/${VPN}.pid ; then - PIDFILE=`ls $VARRUN_DIR/${VPN}.pid 2> /dev/null` - NAME=`echo $PIDFILE | cut -c17-` - NAME=${NAME%%.pid} - ebegin "Restarting ${DESC} VPN: ${NAME}" - stop_vpn - start_vpn - eend $? - else - eerror "failure: No such tunnel is running: $VPN" - fi - fi -} - |