[Pkg-privacy-commits] [msva-perl] 345/356: disable monitoring and prompting on codebase changes by default.

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository msva-perl.

commit d5fa7d6af624d2d1c4941b3d81385c851ff479d5
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Wed Jul 25 02:01:34 2012 -0400

    disable monitoring and prompting on codebase changes by default.
    
    Users can still hup the msva-perl instance manually to reload the
    daemon, and can enable monitoring and prompting by ensuring that the
    environment variable MSVA_MONITOR_CHANGES=true.
---
 Crypt/Monkeysphere/MSVA.pm | 7 ++++++-
 msva-perl                  | 8 ++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index bbde2b3..ffc3f42 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -842,7 +842,12 @@
       # ssh-agent.  maybe avoid backgrounding by setting
       # MSVA_NO_BACKGROUND.
     };
-    $self->{updatemonitor} = Crypt::Monkeysphere::MSVA::Monitor::->new($logger);
+    if (exists $ENV{MSVA_MONITOR_CHANGES} &&
+        $ENV{MSVA_MONITOR_CHANGES} eq 'true') {
+      $self->{updatemonitor} = Crypt::Monkeysphere::MSVA::Monitor::->new($logger);
+    } else {
+      msvalog('verbose', "Not monitoring for changes\n");
+    }
   }
 
   sub extracerts {
diff --git a/msva-perl b/msva-perl
index 7c2cde6..e900e78 100755
--- a/msva-perl
+++ b/msva-perl
@@ -114,6 +114,14 @@ keyserver. 'unlessvalid' will only check with the keyserver on a
 specific query if no keys are already locally known to be valid for
 the requested peer.  Default is 'unlessvalid'.
 
+=item MSVA_MONITOR_CHANGES
+
+Under graphical environments such as X11, msva-perl is capable of
+monitoring for changes in its underlying code and can prompt the user
+to restart the daemon when some of the underlying code changes.
+Setting this environmnt variable to 'true' enables this monitoring and
+prompting behavior.  Default is 'false'.
+
 =back
 
 =head1 COMMUNICATION PROTOCOL DETAILS

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git



More information about the Pkg-privacy-commits mailing list