Package: openvpn
Version: 2.0.5-1
Severity: normal
Tags: patch

I build a openvpn client configuration, and inserted the name in
/etc/default/openvpn so it can be started by /etc/init.d/openvpn.

Unfortunately there is a mistake in the init script, the command

    $DAEMON --writepid /var/run/openvpn.$NAME.pid \
            $DAEMONARG $STATUSARG --cd $CONFIG_DIR \
            --config $CONFIG_DIR/$NAME.conf < /dev/null
            || STATUS="FAILED"
                            
contains a "<" instead of a ">". Though, the openvpn process is started,
but doesn't create a pid nor a status file. The result is, the process
can't be terminated again by the init script, because it depends on the pid
file.

I changed the "<" to a ">" and everything works fine.

Patch:
49c49
<             --config $CONFIG_DIR/$NAME.conf < /dev/null ||
STATUS="FAILED"
---
>             --config $CONFIG_DIR/$NAME.conf > /dev/null ||
STATUS="FAILED"

Hope this is ok, it's my first bug report.

Bjoern

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-1-k7
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages openvpn depends on:
ii  debconf [debconf-2.0]         1.4.67     Debian configuration management sy
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  liblzo1                       1.08-2     data compression library
ii  libssl0.9.8                   0.9.8a-5   SSL shared libraries

openvpn recommends no packages.

-- debconf information:
  openvpn/change_init: true
* openvpn/stop2upgrade: true
  openvpn/default_port:
  openvpn/change_init2: true
* openvpn/create_tun: true
49c49
<             --config $CONFIG_DIR/$NAME.conf < /dev/null || STATUS="FAILED"
---
>             --config $CONFIG_DIR/$NAME.conf > /dev/null || STATUS="FAILED"

Reply via email to