Your message dated Fri, 01 May 2009 15:17:15 +0000
with message-id <[email protected]>
and subject line Bug#498493: fixed in openvpn 2.1~rc15-1
has caused the Debian Bug report #498493,
regarding Missing status action in init script
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.)
--
498493: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498493
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openvpn
Severity: wishlist
Version: 2.1~rc9-3
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch intrepid
The init script for openvpn is missing a "status" action. It is a little
complex because the init script can start zero-to-many VPNs based on
configuration.
The proposed implementation is to have the status action list the VPNs
available and their specific status, then consider it a global success
when all VPNs that should be autostarted are running, and failure
otherwise. If no VPN is configured, then it should be considered a failure.
See proposed patch to init script.
Hopes this helps !
--
Thierry Carrez
diff -ruN openvpn-2.1~rc9.orig/debian/control openvpn-2.1~rc9/debian/control
--- openvpn-2.1~rc9.orig/debian/control 2008-09-10 15:07:19.000000000 +0200
+++ openvpn-2.1~rc9/debian/control 2008-09-10 15:07:08.000000000 +0200
@@ -7,7 +7,7 @@
Package: openvpn
Architecture: any
-Depends: debconf | debconf-2.0, ${shlibs:Depends}, libssl0.9.8 (>= 0.9.8g-9), openssl-blacklist (>= 0.4), openvpn-blacklist
+Depends: debconf | debconf-2.0, ${shlibs:Depends}, libssl0.9.8 (>= 0.9.8g-9), openssl-blacklist (>= 0.4), openvpn-blacklist, lsb-base (>= 3.2-14)
Recommends: net-tools
Suggests: openssl, resolvconf
Description: virtual private network daemon
diff -ruN openvpn-2.1~rc9.orig/debian/openvpn.init.d openvpn-2.1~rc9/debian/openvpn.init.d
--- openvpn-2.1~rc9.orig/debian/openvpn.init.d 2008-09-10 15:07:19.000000000 +0200
+++ openvpn-2.1~rc9/debian/openvpn.init.d 2008-09-10 15:05:41.000000000 +0200
@@ -189,8 +189,70 @@
done
log_end_msg 0
;;
+status)
+ GLOBAL_STATUS=0
+ if test -z "$2" ; then
+ # We want status for all defined VPNs.
+ # Returns success if all autostarted VPNs are defined and running
+ if test "x$AUTOSTART" = "xnone" ; then
+ # Consider it a failure if AUTOSTART=none
+ log_warning_msg "No VPN autostarted"
+ GLOBAL_STATUS=1
+ else
+ if ! test -z "$AUTOSTART" -o "x$AUTOSTART" = "xall" ; then
+ # Consider it a failure if one of the autostarted VPN is not defined
+ for VPN in $AUTOSTART ; do
+ if ! test -f $CONFIG_DIR/$VPN.conf ; then
+ log_warning_msg "VPN '$VPN' is in AUTOSTART but is not defined"
+ GLOBAL_STATUS=1
+ fi
+ done
+ fi
+ fi
+ for CONFIG in `cd $CONFIG_DIR; ls *.conf 2> /dev/null`; do
+ NAME=${CONFIG%%.conf}
+ # Is it an autostarted VPN ?
+ if test -z "$AUTOSTART" -o "x$AUTOSTART" = "xall" ; then
+ AUTOVPN=1
+ else
+ if test "x$AUTOSTART" = "xnone" ; then
+ AUTOVPN=0
+ else
+ AUTOVPN=0
+ for VPN in $AUTOSTART; do
+ if test "x$VPN" = "x$NAME" ; then
+ AUTOVPN=1
+ fi
+ done
+ fi
+ fi
+ if test "x$AUTOVPN" = "x1" ; then
+ # If it is autostarted, then it contributes to global status
+ status_of_proc -p /var/run/openvpn.${NAME}.pid openvpn "VPN '${NAME}'" || GLOBAL_STATUS=1
+ else
+ status_of_proc -p /var/run/openvpn.${NAME}.pid openvpn "VPN '${NAME}' (non autostarted)" || true
+ fi
+ done
+ else
+ # We just want status for specified VPNs.
+ # Returns success if all specified VPNs are defined and running
+ while shift ; do
+ [ -z "$1" ] && break
+ NAME=$1
+ if test -e $CONFIG_DIR/$NAME.conf ; then
+ # Config exists
+ status_of_proc -p /var/run/openvpn.${NAME}.pid openvpn "VPN '${NAME}'" || GLOBAL_STATUS=1
+ else
+ # Config does not exist
+ log_warning_msg "VPN '$NAME': missing $CONFIG_DIR/$NAME.conf file !"
+ GLOBAL_STATUS=1
+ fi
+ done
+ fi
+ exit $GLOBAL_STATUS
+ ;;
*)
- echo "Usage: $0 {start|stop|reload|restart|force-reload|cond-restart}" >&2
+ echo "Usage: $0 {start|stop|reload|restart|force-reload|cond-restart|status}" >&2
exit 1
;;
esac
--- End Message ---
--- Begin Message ---
Source: openvpn
Source-Version: 2.1~rc15-1
We believe that the bug you reported is fixed in the latest version of
openvpn, which is due to be installed in the Debian FTP archive:
openvpn_2.1~rc15-1.diff.gz
to pool/main/o/openvpn/openvpn_2.1~rc15-1.diff.gz
openvpn_2.1~rc15-1.dsc
to pool/main/o/openvpn/openvpn_2.1~rc15-1.dsc
openvpn_2.1~rc15-1_i386.deb
to pool/main/o/openvpn/openvpn_2.1~rc15-1_i386.deb
openvpn_2.1~rc15.orig.tar.gz
to pool/main/o/openvpn/openvpn_2.1~rc15.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alberto Gonzalez Iniesta <[email protected]> (supplier of updated openvpn
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 30 Apr 2009 12:35:05 +0200
Source: openvpn
Binary: openvpn
Architecture: source i386
Version: 2.1~rc15-1
Distribution: unstable
Urgency: low
Maintainer: Alberto Gonzalez Iniesta <[email protected]>
Changed-By: Alberto Gonzalez Iniesta <[email protected]>
Description:
openvpn - virtual private network daemon
Closes: 445061 475353 498493 515575
Changes:
openvpn (2.1~rc15-1) unstable; urgency=low
.
* New upstream version (Closes: #515575)
* remote_env.patch: patched options.c to fix remote* enviroment vars.
* openvpn-pkcs11warn.patch: warn on deprecated pkcs11 options.
Thanks A LOT to Florian Kulzer for the README.Debian text & patch!
(Closes: #475353)
* Removed lladdr-is-not-ip.patch, since it was included upstream.
* init.d script: Use start-stop-daemon to avoid failure on start when
a PID file is not deleted. (Closes: #445061)
* init.d script: Added 'status' action. Thanks Thierry Carrez for
the patch. (Closes: #498493)
* Updated debian/copyright: Point to GPL-2
* Updated debian/control: Added ${misc:Depends}
* Bumped Standards-Version to 3.8.1
* Moved to debhelper compat 7.
Checksums-Sha1:
d6d963f73198acaa402c99e78d970694ff358293 1057 openvpn_2.1~rc15-1.dsc
a07f9b24947428e905d0c41339b9ed522358c672 833429 openvpn_2.1~rc15.orig.tar.gz
520a8dec05dc51845a2b2759659c38a680fb32b0 83795 openvpn_2.1~rc15-1.diff.gz
326dc7bab499763cef6a93dadeff08730b60ceea 406384 openvpn_2.1~rc15-1_i386.deb
Checksums-Sha256:
01e5e8c56de2780aa0e88bf72197eada3343cbf5b08e130e8323f6ac9014fa4b 1057
openvpn_2.1~rc15-1.dsc
66cfe347da6ab29ae39c80527714079cdb5699fdf453f7e031dd2ec0172d13a5 833429
openvpn_2.1~rc15.orig.tar.gz
19cce7ad6896ea859a212091afec82515fec9a26d5845a218c3dce7b449be229 83795
openvpn_2.1~rc15-1.diff.gz
a6f311329a3bc01c61a7df76ea00e13c635de7ab60cb1af3f424657e836f7182 406384
openvpn_2.1~rc15-1_i386.deb
Files:
e78e08380ab649f9d1448ad3e8297d69 1057 net optional openvpn_2.1~rc15-1.dsc
14a35b05c5a16292d149592d1dad0302 833429 net optional
openvpn_2.1~rc15.orig.tar.gz
af582b2cc440017199d61b5d26bbd6ec 83795 net optional openvpn_2.1~rc15-1.diff.gz
8941d4b581a57bd6312c9b90195a48c6 406384 net optional
openvpn_2.1~rc15-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkn7CEwACgkQxRSvjkukAcM4MACgtXnp8CIY8orGkU4z0WvhiNpp
cFoAoLY77zw89gyNYImOpRRBoIvCWJhS
=wVB2
-----END PGP SIGNATURE-----
--- End Message ---