Package: openvpn
Version: 2.0-1
Followup-For: Bug #306588
This happens to me when I use "status" in the openvpn config file, so
that the stop_vpn function in the init script has nothing to rm. This
causes the function to return an error, and since we're running set -e,
the init script exits at this point.
The "fixstop" patch below fixes it for me without doing an unconditional
rm -rf.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages openvpn depends on:
ii debconf 1.4.45 Debian configuration management sy
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii liblzo1 1.08-2 data compression library
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
-- debconf information:
openvpn/change_init: true
openvpn/create_tun: false
* openvpn/stop2upgrade: false
openvpn/default_port:
*** fixstop
--- /etc/init.d/openvpn 2005-05-20 12:20:48.000000000 -0400
+++ /etc/init.d/openvpn.fixstop 2005-05-20 12:24:22.000000000 -0400
@@ -49,7 +49,7 @@
kill `cat $PIDFILE` || true
rm $PIDFILE
[ -e /var/run/openvpn.$NAME.status ] \
- && rm /var/run/openvpn.$NAME.status
+ && rm /var/run/openvpn.$NAME.status || true
}
case "$1" in
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]