Your message dated Mon, 30 Jul 2018 10:18:26 +0200 with message-id <[email protected]> and subject line Re: openvpn init script does not wait for interfaces to come up and exits too early has caused the Debian Bug report #681961, regarding openvpn init script does not wait for interfaces to come up and exits too early to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 681961: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681961 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: openvpn Version: 2.1.3-2+squeeze1 Severity: minor Tags: patch Dear Maintainer, * What led up to the situation? * I wanted to start lighttpd on a openvpn interface, unfortunately it could not bind to the interface * What exactly did you do (or not do) that was effective (or ineffective)? * Added some code to the init script, so that it only exits when the interface is really up * What was the outcome of this action? * Now openvpn init script only exits when interfaces are really up Here is my patch --- /etc/init.d/openvpn.bak 2012-07-12 05:20:07.000000000 -0500 +++ /etc/init.d/openvpn 2012-07-18 02:58:54.000000000 -0500 @@ -36,6 +36,7 @@ fi start_vpn () { + local dev=$(grep "^dev " $CONFIG_DIR/$NAME.conf | awk '{ print $NF }') if grep -q '^[ ]*daemon' $CONFIG_DIR/$NAME.conf ; then # daemon already given in config file DAEMONARG= @@ -56,13 +57,19 @@ fi log_progress_msg "$NAME" - STATUS=0 + STATUS=1 start-stop-daemon --start --quiet --oknodo \ --pidfile /var/run/openvpn.$NAME.pid \ --exec $DAEMON -- $OPTARGS --writepid /var/run/openvpn.$NAME.pid \ $DAEMONARG $STATUSARG --cd $CONFIG_DIR \ - --config $CONFIG_DIR/$NAME.conf || STATUS=1 + --config $CONFIG_DIR/$NAME.conf || return + + for i in `seq 8`; do + sleep 1 + ip -o -f inet addr show $dev >/dev/null 2>&1 && STATUS=0 && break + log_progress_msg "." + done } stop_vpn () { kill `cat $PIDFILE` || true -- System Information: Debian Release: 6.0.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash
--- End Message ---
--- Begin Message --------BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Lars, thank you for spending your time helping to make Debian better with this bug report. You file this bug against a currently not longer supported release. So I close this bug. If the bug still exists please file a new bug from a supported release. CU Jörg - -- New: GPG Fingerprint: 63E0 075F C8D4 3ABB 35AB 30EE 09F8 9F3C 8CA1 D25D GPG key (long) : 09F89F3C8CA1D25D GPG Key : 8CA1D25D CAcert Key S/N : 0E:D4:56 Old pgp Key: BE581B6E (revoked since 2014-12-31). Jörg Frings-Fürst D-54470 Lieser git: https://jff.email/cgit/ Threema: SYR8SJXB Wire: @joergfringsfuerst Skype: joergpenguin Ring: jff Telegram: @joergfringsfuerst My wish list: - Please send me a picture from the nature at your home. -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEY+AHX8jUOrs1qzDuCfifPIyh0l0FAlteydIACgkQCfifPIyh 0l218g//f4kSP9XQU96OQ2lZuXeFtpJqE2wYmFuWpoZ1jxZG4J33Nnu+EgAKK2y7 h6Fzy5OgtfmFgmSbn4EZxvIlKq8ut/zKh98j4j3x9mTyBwKASJ9Jo+RVjkh+/X6F 1Bu3wybOq4yts2QkONlni0W/d7BeMY9b2zEKOmPJD9VhvVdDi7JsSYqtmNurQRZL jUBk2IMqXaV72nSQXV1JBlDsnrccCW+rDWwvqcj1uyvPsD6WKbpdizru2+gc3ujp xjCFkV05b7vNUne1FI1TiHiUE0C4VNcOm8OgP7TMTRah1YiYdek5uH3VxIknoxab SRxyMSwKAgxkRSzZGkZiTtpql/8CHDpYndhoGEbzYCbkLdG8xZ1Ee515AqvSpFjr gDAE+QKac6/oz2rJV8Sa01tJuj4aw2/liysKpcnA/LYYt/aBbSm2K8+mDKBBOJR4 QRAf2LRuOjbXTVvw8M+iMeyzxRl7WePNu52EHyXkdWYL+r0xTztlsbL20iG7BjAt v86/CVtO7kpsSD51pNd43GqLxH4UO54cTMq8BjqIMz+/WjGFV61Rw0TVuAjtuIp0 2NkcduLxnKJpzCEzcIsZq/2K+GzEQVu0cw0/wv3tCdqjzxYfMHDmfX+dI3GpnU9t Unm//ANZ8tHJtk+vMpmVhhC8KqmeBFIMMz/aBBYwgb6FO2Y6/Zw= =UMhq -----END PGP SIGNATURE-----
--- End Message ---

