Package: openvpn
Version: 2.0-1
Severity: minor
I have to execute "/etc/init.d/openvpn restart" twice. The first time
the daemon is only stopped, but doesn't restart.
I propose the following patch (or remove the -e option in /bin/sh -e):
--- openvpn 2005-04-18 14:10:22.000000000 -0500
+++ openvpn.new 2005-07-07 12:15:51.582964702 -0500
@@ -48,8 +48,9 @@
stop_vpn () {
kill `cat $PIDFILE` || true
rm $PIDFILE
- [ -e /var/run/openvpn.$NAME.status ] \
- && rm /var/run/openvpn.$NAME.status
+ if test -e "/var/run/openvpn.$NAME.status" ; then
+ rm "/var/run/openvpn.$NAME.status"
+ fi
}
case "$1" in
--
Gruß
Thomas