Opened 7 years ago

Closed 7 years ago

#344 closed Bug / Defect (invalid)

init-script only starts the first interface on restart

Reported by: rkbwde Owned by:
Priority: minor Milestone:
Component: Generic / unclassified Version: OpenVPN 2.2.2 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

On SuSE Linux, calling "/etc/init.d/openvpn restart" causes openvpn to close down all active interfaces and to call itself again with "/etc/init.d/openvpn start <list of interfaces>". However, only the first two parameters are actually evaluated in the init script:

action="$1" ; shift
config="$1" ; shift

Thus, only the first interface ist started, the second and further stay down.

Change History (2)

comment:1 Changed 7 years ago by rkbwde

Maybe this is a bug specific to the OpenSuSE distribution:

#! /bin/sh
# Copyright (c) 2003 SuSE Linux AG
# Copyright (c) 2004-2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# Author: Peter Poeml <poeml@suse.de>
#         Marius Tomaschewski <mt@suse.de>
#
# inspired by the init script contributed to the OpenVPN project by 
# Douglas Keller <doug@voidstar.dyndns.org>

comment:2 Changed 7 years ago by Gert Döring

Resolution: invalid
Status: newclosed

That very much sounds like a SuSE specific bug - the init script examples we ship does not contain this code at all.

So please report the bug over there :-) - thanks.

Note: See TracTickets for help on using tickets.