summaryrefslogtreecommitdiff
path: root/tickets/20bdae3913de49d4afd544d36996ce4b
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-02-20 22:10:13 +0200
committerLars Wirzenius <liw@liw.fi>2016-02-20 22:10:13 +0200
commit8c087e41fdda5d9508b9c95ea57fbd079142633d (patch)
tree44bbbcec3aac27d6ca26d498ac1b4f77ae15c190 /tickets/20bdae3913de49d4afd544d36996ce4b
parentea12bbd09cf9e03d4b50f139f55925aad10dcec0 (diff)
downloadobnam-dev-distix-8c087e41fdda5d9508b9c95ea57fbd079142633d.tar.gz
imported mails
Diffstat (limited to 'tickets/20bdae3913de49d4afd544d36996ce4b')
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/cur/.this-dir-not-empty/.empty/empty-file0
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/.this-dir-not-empty/.empty/empty-file0
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M456859P17339Q67.exolobe1199
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M825284P17339Q73.exolobe1199
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999001.M810378P17339Q121.exolobe1111
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999008.M797229P17339Q196.exolobe1116
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999010.M703059P17339Q213.exolobe1127
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999012.M515964P17339Q246.exolobe197
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/tmp/.this-dir-not-empty/.empty/empty-file0
-rw-r--r--tickets/20bdae3913de49d4afd544d36996ce4b/ticket.yaml4
10 files changed, 853 insertions, 0 deletions
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/cur/.this-dir-not-empty/.empty/empty-file b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/cur/.this-dir-not-empty/.empty/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/cur/.this-dir-not-empty/.empty/empty-file
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/.this-dir-not-empty/.empty/empty-file b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/.this-dir-not-empty/.empty/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/.this-dir-not-empty/.empty/empty-file
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M456859P17339Q67.exolobe1 b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M456859P17339Q67.exolobe1
new file mode 100644
index 0000000..a5834c3
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M456859P17339Q67.exolobe1
@@ -0,0 +1,199 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 84E152B926
+ for <distix@pieni.net>; Thu, 29 Oct 2015 05:50:24 +0100 (CET)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id CFD49CB;
+ Thu, 29 Oct 2015 04:50:23 +0000 (GMT)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZrfAN-00044G-JC; Thu, 29 Oct 2015 04:50:23 +0000
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZrfAL-00044A-Vz
+ for <obnam-dev@obnam.org>; Thu, 29 Oct 2015 04:50:22 +0000
+Received: from mail-yk0-f171.google.com ([209.85.160.171])
+ by mx0.pepperfish.net with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128)
+ (Exim 4.80) (envelope-from <mathstuf@gmail.com>) id 1ZrfAJ-0002gX-Qb
+ for obnam-dev@obnam.org; Thu, 29 Oct 2015 04:50:21 +0000
+Received: by ykft191 with SMTP id t191so31141295ykf.0
+ for <obnam-dev@obnam.org>; Wed, 28 Oct 2015 21:50:06 -0700 (PDT)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
+ h=from:to:cc:subject:date:message-id:in-reply-to:references;
+ bh=gYI6W/BaZtNFrMk/TFeDM3T8/PD2IwVRG0tUVOR2/pQ=;
+ b=YSdfYdl3JjIPyERxdykEUa3pQt/tuQvdjLR6chuX9K5IW/X/OYxQpGLef+DeAwLlhD
+ 1feXCTJ/WAInNXDp8vjkuMdmG+p+hItToYS558UhvRYJFMO5l1QkLo6iq8ufltY78T1Y
+ FqF4vQR8uZ+Ege7mJa1+Z4kaFhnajenVpWYbTNTWJd2FjDOFG1xgn37AW0FGPjHIDQH1
+ 43x2kpgDfE7fmACa1qc711btewA81tx7pVyGDTe2QMlbK7Ut+qH8Ly0RDcSs62fNmIVp
+ n8q4+oH5oERhPDOF81iMJIGRZX6Ev4+Hehej+Hz0TaK8wjm8xrn4/FReLBiXpaKpTPI7
+ IOrQ==
+X-Received: by 10.129.157.211 with SMTP id u202mr36753486ywg.11.1446094205976;
+ Wed, 28 Oct 2015 21:50:05 -0700 (PDT)
+Received: from localhost (10.sub-70-209-141.myvzw.com. [70.209.141.10])
+ by smtp.gmail.com with ESMTPSA id i66sm33284774ywc.2.2015.10.28.21.50.04
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
+ Wed, 28 Oct 2015 21:50:05 -0700 (PDT)
+From: Ben Boeckel <mathstuf@gmail.com>
+To: obnam-dev@obnam.org
+Date: Thu, 29 Oct 2015 00:49:56 -0400
+Message-Id: <1446094196-14166-1-git-send-email-mathstuf@gmail.com>
+X-Mailer: git-send-email 2.6.2
+In-Reply-To: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+References: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+X-Spam-Score: -0.5
+X-Spam-Score-int: -4
+X-Spam-Bar: /
+X-Scanned-By: pepperfish.net, Thu, 29 Oct 2015 04:50:21 +0000
+X-Spam-Report: Content analysis details: (-0.5 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ 1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
+ 1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
+ (mathstuf[at]gmail.com)
+ -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
+ trust [209.85.160.171 listed in list.dnswl.org]
+ -0.0 SPF_PASS SPF: sender matches SPF record
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+ -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
+ domain
+ 0.1 DKIM_SIGNED Message has a DKIM or DK signature,
+ not necessarily valid
+ -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
+X-ACL-Warn: message may be spam
+X-Scan-Signature: fc70ac7cbc1a3ab5eb75965631bdeb45
+Cc: Ben Boeckel <mathstuf@gmail.com>
+Subject: [PATCH] backup: take an inhibitor lock if possible
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+When a backup is happening, the machine should not suspend or otherwise
+go down. Add a setting for taking a systemd inhibitor lock.
+
+The code fails safely which allows both the dbus module and the
+systemd-logind DBus interface to be optional. In both cases, warnings
+are generated.
+
+Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
+---
+ obnamlib/plugins/backup_plugin.py | 73 +++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 73 insertions(+)
+
+diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py
+index 978db2e..e15d614 100644
+--- a/obnamlib/plugins/backup_plugin.py
++++ b/obnamlib/plugins/backup_plugin.py
+@@ -125,6 +125,13 @@ class BackupPlugin(obnamlib.ObnamPlugin):
+ 'as it is quite bad for performance',
+ group=backup_group)
+
++ self.app.settings.boolean(
++ ['block-suspend'],
++ 'block shutdown and suspending of the '
++ 'system while the backup is in progress',
++ default=True,
++ group=backup_group)
++
+ # Performance related settings.
+
+ perf_group = obnamlib.option_group['perf']
+@@ -155,6 +162,22 @@ class BackupPlugin(obnamlib.ObnamPlugin):
+
+ '''
+
++ if self.app.settings['block-suspend']:
++ inhibitor_args = {
++ 'what': (IDLE, SLEEP, SHUTDOWN),
++ 'why': 'backup in progress',
++ 'who': 'obnam',
++ 'mode': BLOCK,
++ }
++ with Inhibitor(**inhibitor_args):
++ self._backup(args)
++ else:
++ self._backup(args)
++
++ def _backup(self, args):
++ '''Actual backup logic.
++ '''
++
+ logging.info('Backup starts')
+
+ root_urls = self.app.settings['root'] + args
+@@ -900,3 +923,53 @@ class BackupPlugin(obnamlib.ObnamPlugin):
+ tracing.trace('new_roots: %s' % repr(new_roots))
+ gen_id = self.new_generation
+ helper('/')
++
++# Inhibitor logic.
++
++# Things that can be inhibited.
++SHUTDOWN = 'shutdown'
++SLEEP = 'sleep'
++IDLE = 'idle'
++HANDLE_POWER_KEY = 'handle-power-key'
++HANDLE_SUSPEND_KEY = 'handle-suspend-key'
++HANDLE_HIBERNATE_KEY = 'handle-hibernate-key'
++HANDLE_LID_SWITCH = 'handle-lid-switch'
++
++# What kind of block can be taken.
++BLOCK = 'block'
++DELAY = 'delay'
++
++
++class Inhibitor(object):
++ def __init__(self, what=(IDLE, SLEEP, SHUTDOWN),
++ who='obnam', why='Unknown reason', mode=BLOCK):
++ self.what = ':'.join(what)
++ self.who = who
++ self.why = why
++ self.mode = mode
++
++ self._fd = None
++
++ def __enter__(self):
++ try:
++ import dbus
++ except ImportError:
++ logging.warn(
++ 'Failed to import the dbus module. '
++ 'Skipping inhibitor locks.')
++ return
++
++ try:
++ bus = dbus.SystemBus()
++ manager = bus.get_object('org.freedesktop.login1',
++ '/org/freedesktop/login1')
++ iface = 'org.freedesktop.login1.Manager'
++ self._fd = manager.Inhibit(self.what, self.who,
++ self.why, self.mode,
++ dbus_interface=iface)
++ except BaseException, e:
++ logging.warning('failed to take an inhibitor lock')
++ logging.debug('Inhibitor exception %s', str(e))
++
++ def __exit__(self, type_, value, traceback):
++ self._fd = None
+--
+2.6.2
+
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M825284P17339Q73.exolobe1 b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M825284P17339Q73.exolobe1
new file mode 100644
index 0000000..a5834c3
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455998997.M825284P17339Q73.exolobe1
@@ -0,0 +1,199 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 84E152B926
+ for <distix@pieni.net>; Thu, 29 Oct 2015 05:50:24 +0100 (CET)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id CFD49CB;
+ Thu, 29 Oct 2015 04:50:23 +0000 (GMT)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZrfAN-00044G-JC; Thu, 29 Oct 2015 04:50:23 +0000
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZrfAL-00044A-Vz
+ for <obnam-dev@obnam.org>; Thu, 29 Oct 2015 04:50:22 +0000
+Received: from mail-yk0-f171.google.com ([209.85.160.171])
+ by mx0.pepperfish.net with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128)
+ (Exim 4.80) (envelope-from <mathstuf@gmail.com>) id 1ZrfAJ-0002gX-Qb
+ for obnam-dev@obnam.org; Thu, 29 Oct 2015 04:50:21 +0000
+Received: by ykft191 with SMTP id t191so31141295ykf.0
+ for <obnam-dev@obnam.org>; Wed, 28 Oct 2015 21:50:06 -0700 (PDT)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
+ h=from:to:cc:subject:date:message-id:in-reply-to:references;
+ bh=gYI6W/BaZtNFrMk/TFeDM3T8/PD2IwVRG0tUVOR2/pQ=;
+ b=YSdfYdl3JjIPyERxdykEUa3pQt/tuQvdjLR6chuX9K5IW/X/OYxQpGLef+DeAwLlhD
+ 1feXCTJ/WAInNXDp8vjkuMdmG+p+hItToYS558UhvRYJFMO5l1QkLo6iq8ufltY78T1Y
+ FqF4vQR8uZ+Ege7mJa1+Z4kaFhnajenVpWYbTNTWJd2FjDOFG1xgn37AW0FGPjHIDQH1
+ 43x2kpgDfE7fmACa1qc711btewA81tx7pVyGDTe2QMlbK7Ut+qH8Ly0RDcSs62fNmIVp
+ n8q4+oH5oERhPDOF81iMJIGRZX6Ev4+Hehej+Hz0TaK8wjm8xrn4/FReLBiXpaKpTPI7
+ IOrQ==
+X-Received: by 10.129.157.211 with SMTP id u202mr36753486ywg.11.1446094205976;
+ Wed, 28 Oct 2015 21:50:05 -0700 (PDT)
+Received: from localhost (10.sub-70-209-141.myvzw.com. [70.209.141.10])
+ by smtp.gmail.com with ESMTPSA id i66sm33284774ywc.2.2015.10.28.21.50.04
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
+ Wed, 28 Oct 2015 21:50:05 -0700 (PDT)
+From: Ben Boeckel <mathstuf@gmail.com>
+To: obnam-dev@obnam.org
+Date: Thu, 29 Oct 2015 00:49:56 -0400
+Message-Id: <1446094196-14166-1-git-send-email-mathstuf@gmail.com>
+X-Mailer: git-send-email 2.6.2
+In-Reply-To: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+References: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+X-Spam-Score: -0.5
+X-Spam-Score-int: -4
+X-Spam-Bar: /
+X-Scanned-By: pepperfish.net, Thu, 29 Oct 2015 04:50:21 +0000
+X-Spam-Report: Content analysis details: (-0.5 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ 1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
+ 1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
+ (mathstuf[at]gmail.com)
+ -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
+ trust [209.85.160.171 listed in list.dnswl.org]
+ -0.0 SPF_PASS SPF: sender matches SPF record
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+ -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
+ domain
+ 0.1 DKIM_SIGNED Message has a DKIM or DK signature,
+ not necessarily valid
+ -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
+X-ACL-Warn: message may be spam
+X-Scan-Signature: fc70ac7cbc1a3ab5eb75965631bdeb45
+Cc: Ben Boeckel <mathstuf@gmail.com>
+Subject: [PATCH] backup: take an inhibitor lock if possible
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+When a backup is happening, the machine should not suspend or otherwise
+go down. Add a setting for taking a systemd inhibitor lock.
+
+The code fails safely which allows both the dbus module and the
+systemd-logind DBus interface to be optional. In both cases, warnings
+are generated.
+
+Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
+---
+ obnamlib/plugins/backup_plugin.py | 73 +++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 73 insertions(+)
+
+diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py
+index 978db2e..e15d614 100644
+--- a/obnamlib/plugins/backup_plugin.py
++++ b/obnamlib/plugins/backup_plugin.py
+@@ -125,6 +125,13 @@ class BackupPlugin(obnamlib.ObnamPlugin):
+ 'as it is quite bad for performance',
+ group=backup_group)
+
++ self.app.settings.boolean(
++ ['block-suspend'],
++ 'block shutdown and suspending of the '
++ 'system while the backup is in progress',
++ default=True,
++ group=backup_group)
++
+ # Performance related settings.
+
+ perf_group = obnamlib.option_group['perf']
+@@ -155,6 +162,22 @@ class BackupPlugin(obnamlib.ObnamPlugin):
+
+ '''
+
++ if self.app.settings['block-suspend']:
++ inhibitor_args = {
++ 'what': (IDLE, SLEEP, SHUTDOWN),
++ 'why': 'backup in progress',
++ 'who': 'obnam',
++ 'mode': BLOCK,
++ }
++ with Inhibitor(**inhibitor_args):
++ self._backup(args)
++ else:
++ self._backup(args)
++
++ def _backup(self, args):
++ '''Actual backup logic.
++ '''
++
+ logging.info('Backup starts')
+
+ root_urls = self.app.settings['root'] + args
+@@ -900,3 +923,53 @@ class BackupPlugin(obnamlib.ObnamPlugin):
+ tracing.trace('new_roots: %s' % repr(new_roots))
+ gen_id = self.new_generation
+ helper('/')
++
++# Inhibitor logic.
++
++# Things that can be inhibited.
++SHUTDOWN = 'shutdown'
++SLEEP = 'sleep'
++IDLE = 'idle'
++HANDLE_POWER_KEY = 'handle-power-key'
++HANDLE_SUSPEND_KEY = 'handle-suspend-key'
++HANDLE_HIBERNATE_KEY = 'handle-hibernate-key'
++HANDLE_LID_SWITCH = 'handle-lid-switch'
++
++# What kind of block can be taken.
++BLOCK = 'block'
++DELAY = 'delay'
++
++
++class Inhibitor(object):
++ def __init__(self, what=(IDLE, SLEEP, SHUTDOWN),
++ who='obnam', why='Unknown reason', mode=BLOCK):
++ self.what = ':'.join(what)
++ self.who = who
++ self.why = why
++ self.mode = mode
++
++ self._fd = None
++
++ def __enter__(self):
++ try:
++ import dbus
++ except ImportError:
++ logging.warn(
++ 'Failed to import the dbus module. '
++ 'Skipping inhibitor locks.')
++ return
++
++ try:
++ bus = dbus.SystemBus()
++ manager = bus.get_object('org.freedesktop.login1',
++ '/org/freedesktop/login1')
++ iface = 'org.freedesktop.login1.Manager'
++ self._fd = manager.Inhibit(self.what, self.who,
++ self.why, self.mode,
++ dbus_interface=iface)
++ except BaseException, e:
++ logging.warning('failed to take an inhibitor lock')
++ logging.debug('Inhibitor exception %s', str(e))
++
++ def __exit__(self, type_, value, traceback):
++ self._fd = None
+--
+2.6.2
+
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999001.M810378P17339Q121.exolobe1 b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999001.M810378P17339Q121.exolobe1
new file mode 100644
index 0000000..4b75444
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999001.M810378P17339Q121.exolobe1
@@ -0,0 +1,111 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 4BECB2B875
+ for <distix@pieni.net>; Fri, 18 Sep 2015 07:03:07 +0200 (CEST)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id 99AAE5E6;
+ Fri, 18 Sep 2015 06:03:06 +0100 (BST)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZcnpC-0006u0-Ev; Fri, 18 Sep 2015 06:03:06 +0100
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZcnpA-0006tt-JK
+ for <obnam-dev@obnam.org>; Fri, 18 Sep 2015 06:03:04 +0100
+Received: from mail-ig0-f173.google.com ([209.85.213.173])
+ by mx0.pepperfish.net with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128)
+ (Exim 4.80) (envelope-from <mathstuf@gmail.com>) id 1Zcnp8-00058L-5Y
+ for obnam-dev@obnam.org; Fri, 18 Sep 2015 06:03:04 +0100
+Received: by igxx6 with SMTP id x6so10169585igx.1
+ for <obnam-dev@obnam.org>; Thu, 17 Sep 2015 22:02:50 -0700 (PDT)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
+ h=date:from:to:subject:message-id:reply-to:mime-version:content-type
+ :content-disposition:user-agent;
+ bh=/T/xt8N0AOF+B4X8LU58JD/8Mpl8wX/zm8IM5yeA91k=;
+ b=AVhCkjwJyDYqEi4blXNtA2Zg8CNuQb4/ZLJ5yKQOZP44emU4+O8K1LuxP/ZgapbPpx
+ H5sc9ZBrZMXDbaaMkxrByWtJ4b9cXfgl1DZrOGxR9BTVyJK50Ry/ERGzP/dYEOKFowzI
+ BiPuTjb+6stJ5Q5+AX0KTo5+xF/yF3XjFxjej5TBsYCf/DOdm8n68vIuDjCRGEG1jr9r
+ s+TOP1UZO7ZSdEdfOmEzFuSXS5Jc3C4QeMjJS94ZPr1hlmGD+fgP3Gb8hZ4vMUI9RUlw
+ 8JLy34XPr7CCm2mkaPOJpVdb1RIErXKKm2Mzs7fxcPTzIS3s2eyjFpuRYvs29Tbx7QpT
+ BqLw==
+X-Received: by 10.50.109.198 with SMTP id hu6mr31538098igb.3.1442552570564;
+ Thu, 17 Sep 2015 22:02:50 -0700 (PDT)
+Received: from localhost (142.sub-70-209-132.myvzw.com. [70.209.132.142])
+ by smtp.gmail.com with ESMTPSA id j3sm5818348ige.0.2015.09.17.22.02.49
+ for <obnam-dev@obnam.org>
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
+ Thu, 17 Sep 2015 22:02:49 -0700 (PDT)
+Date: Fri, 18 Sep 2015 01:02:47 -0400
+From: Ben Boeckel <mathstuf@gmail.com>
+To: obnam-dev@obnam.org
+Message-ID: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+Content-Disposition: inline
+User-Agent: Mutt/1.5.24 (2015-08-30)
+X-Spam-Score: -2.0
+X-Spam-Score-int: -19
+X-Spam-Bar: --
+X-Scanned-By: pepperfish.net, Fri, 18 Sep 2015 06:03:04 +0100
+X-Spam-Report: Content analysis details: (-2.0 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
+ trust [209.85.213.173 listed in list.dnswl.org]
+ -1.0 PPF_USER_AGENT_MUTT User-Agent: contains Mutt (Mutt isn't a spam
+ tool) -0.5 PPF_USER_AGENT User-Agent: exists
+ 1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
+ 1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
+ (mathstuf[at]gmail.com)
+ -0.0 SPF_PASS SPF: sender matches SPF record
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+ -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
+ domain
+ 0.1 DKIM_SIGNED Message has a DKIM or DK signature,
+ not necessarily valid
+ -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
+X-ACL-Warn: message may be spam
+X-Scan-Signature: dad44cf097470dfea4dc038187207232
+Subject: obnam should take an inhibitor lock during backup
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+Reply-To: mathstuf@gmail.com
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+Hi,
+
+During a backup, it would be nice to have obnam block suspending the
+machine. This can be done via logind's DBus API[1].
+
+It looks like it's ripe for a Python context manager since it returns an
+FD which should be closed when inhibiting should be stopped (and would
+be a no-op if the plugin is disabled or the DBus endpoint is
+unavailable).
+
+I'll look at implementing this at some point, hopefully this month, but
+I make no guarantees (currently my "go to sleep" script is commented out
+to not mess up obnam, so there is pressure to fix it :) ).
+
+--Ben
+
+[1]http://freedesktop.org/wiki/Software/systemd/inhibit/
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999008.M797229P17339Q196.exolobe1 b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999008.M797229P17339Q196.exolobe1
new file mode 100644
index 0000000..8842b14
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999008.M797229P17339Q196.exolobe1
@@ -0,0 +1,116 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 2C3952B858
+ for <distix@pieni.net>; Thu, 29 Oct 2015 05:55:46 +0100 (CET)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id B896FCB;
+ Thu, 29 Oct 2015 04:55:45 +0000 (GMT)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZrfFZ-0004QL-GK; Thu, 29 Oct 2015 04:55:45 +0000
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZrfFX-0004QE-OH
+ for <obnam-dev@obnam.org>; Thu, 29 Oct 2015 04:55:43 +0000
+Received: from mail-yk0-f180.google.com ([209.85.160.180])
+ by mx0.pepperfish.net with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128)
+ (Exim 4.80) (envelope-from <mathstuf@gmail.com>) id 1ZrfFV-0002pY-OB
+ for obnam-dev@obnam.org; Thu, 29 Oct 2015 04:55:43 +0000
+Received: by ykba4 with SMTP id a4so31165132ykb.3
+ for <obnam-dev@obnam.org>; Wed, 28 Oct 2015 21:55:29 -0700 (PDT)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
+ h=date:from:to:subject:message-id:reply-to:references:mime-version
+ :content-type:content-disposition:in-reply-to:user-agent;
+ bh=vbVOic7JnyuHqc1RLTJvJ0ePn80GEtHZ1zdbO/y58zY=;
+ b=HDFqZdtgHKu9HkrMrJ/UNiDrCWYAlZUYyE66Ybe2wkdaONo/XQJduN/uU6nB8G6O4/
+ TgoGEXEh9CjwVGKB4UJyLPz9JXORtQHLpDb+NEukG7M+qDOsY8dnvuYDgDhvxs0rZJKO
+ CAUlddWER1g67NkFJ4FiTe+V2A18HIdSfcRUTxjUGZbTCgNz1mT+dCMKFaz54WH5/uWM
+ m73OUPYSXIMwci4tMyISRcXhAnNVkHPqR9i8bnnVwAm+CsNDhGQW62hgFwXiHqCMeCUD
+ Yn/5OMYmssvxr5S7YvTZjoS9TSsyPrNl7RXt5jlQqUqvL3kZkqZkT7V/BG7gnJalMzes
+ es8w==
+X-Received: by 10.129.89.2 with SMTP id n2mr22553610ywb.119.1446094529892;
+ Wed, 28 Oct 2015 21:55:29 -0700 (PDT)
+Received: from localhost (10.sub-70-209-141.myvzw.com. [70.209.141.10])
+ by smtp.gmail.com with ESMTPSA id x185sm33290583ywf.13.2015.10.28.21.55.28
+ for <obnam-dev@obnam.org>
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
+ Wed, 28 Oct 2015 21:55:29 -0700 (PDT)
+Date: Thu, 29 Oct 2015 00:55:26 -0400
+From: Ben Boeckel <mathstuf@gmail.com>
+To: obnam-dev@obnam.org
+Message-ID: <20151029045526.GA13909@bronto-burt.dev.benboeckel.net>
+References: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+ <1446094196-14166-1-git-send-email-mathstuf@gmail.com>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+Content-Disposition: inline
+In-Reply-To: <1446094196-14166-1-git-send-email-mathstuf@gmail.com>
+User-Agent: Mutt/1.5.24 (2015-08-30)
+X-Spam-Score: -2.0
+X-Spam-Score-int: -19
+X-Spam-Bar: --
+X-Scanned-By: pepperfish.net, Thu, 29 Oct 2015 04:55:43 +0000
+X-Spam-Report: Content analysis details: (-2.0 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ -1.0 PPF_USER_AGENT_MUTT User-Agent: contains Mutt (Mutt isn't a spam
+ tool) -0.5 PPF_USER_AGENT User-Agent: exists
+ 1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
+ 1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
+ (mathstuf[at]gmail.com)
+ -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
+ trust [209.85.160.180 listed in list.dnswl.org]
+ -0.0 SPF_PASS SPF: sender matches SPF record
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+ -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
+ domain
+ 0.1 DKIM_SIGNED Message has a DKIM or DK signature,
+ not necessarily valid
+ -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
+X-ACL-Warn: message may be spam
+X-Scan-Signature: 414f5f03ee092b3fac588a5aec0a9d93
+Subject: Re: [PATCH] backup: take an inhibitor lock if possible
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+Reply-To: mathstuf@gmail.com
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+On Thu, Oct 29, 2015 at 00:49:56 -0400, Ben Boeckel wrote:
+> When a backup is happening, the machine should not suspend or otherwise
+> go down. Add a setting for taking a systemd inhibitor lock.
+>
+> The code fails safely which allows both the dbus module and the
+> systemd-logind DBus interface to be optional. In both cases, warnings
+> are generated.
+
+So, I'm not really sure how to test this properly within the test suite;
+the lock is really kind of opaque without running systemd-inhibit to
+list the active locks. Manual testing shows that obnam is taking the
+inhibitor lock (with the proper description and all) as seen with
+`systemd-inhibit --list`. Can anyone without systemd and/or dbus verify
+the "fails gracefully" bit? I don't have any testing machines with obnam
+and without those bits.
+
+Thanks,
+
+--Ben
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999010.M703059P17339Q213.exolobe1 b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999010.M703059P17339Q213.exolobe1
new file mode 100644
index 0000000..c313ec0
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999010.M703059P17339Q213.exolobe1
@@ -0,0 +1,127 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 9A58C2D9E2
+ for <distix@pieni.net>; Sun, 11 Oct 2015 12:21:16 +0200 (CEST)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id 020EF2BF;
+ Sun, 11 Oct 2015 11:21:16 +0100 (BST)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZlDkh-0007No-SA; Sun, 11 Oct 2015 11:21:15 +0100
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZlDkg-0007Ni-88
+ for <obnam-dev@obnam.org>; Sun, 11 Oct 2015 11:21:14 +0100
+Received: from mailout.easymail.ca ([64.68.201.169])
+ by mx0.pepperfish.net with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256)
+ (Exim 4.80) (envelope-from <hsivonen@hsivonen.fi>)
+ id 1ZlDkd-0000Qd-AK
+ for obnam-dev@obnam.org; Sun, 11 Oct 2015 11:21:14 +0100
+Received: from localhost (localhost [127.0.0.1])
+ by mailout.easymail.ca (Postfix) with ESMTP id 1E231E417
+ for <obnam-dev@obnam.org>; Sun, 11 Oct 2015 06:21:02 -0400 (EDT)
+X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca
+X-Spam-Flag: NO
+X-Spam-Score: -3.681
+X-Spam-Level:
+X-Spam-Status: No, score=-3.681 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.026,
+ BAYES_00=-2.599, DNS_FROM_AHBL_RHSBL=0.692]
+Received: from mailout.easymail.ca ([127.0.0.1])
+ by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new,
+ port 10024) with ESMTP id 1qwqfv1Xs96g for <obnam-dev@obnam.org>;
+ Sun, 11 Oct 2015 06:21:01 -0400 (EDT)
+Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com
+ [209.85.213.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
+ (No client certificate requested)
+ by mailout.easymail.ca (Postfix) with ESMTPSA id 156F2E428
+ for <obnam-dev@obnam.org>; Sun, 11 Oct 2015 06:21:01 -0400 (EDT)
+Received: by ignr19 with SMTP id r19so2269839ign.1
+ for <obnam-dev@obnam.org>; Sun, 11 Oct 2015 03:21:00 -0700 (PDT)
+MIME-Version: 1.0
+X-Received: by 10.50.20.67 with SMTP id l3mr6324826ige.75.1444558860693; Sun,
+ 11 Oct 2015 03:21:00 -0700 (PDT)
+Received: by 10.107.183.65 with HTTP; Sun, 11 Oct 2015 03:21:00 -0700 (PDT)
+In-Reply-To: <20151011082515.GM2384@exolobe1.liw.fi>
+References: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+ <20151011082515.GM2384@exolobe1.liw.fi>
+Date: Sun, 11 Oct 2015 13:21:00 +0300
+Message-ID: <CAJQvAueJBWEqCxGkZHQHnMc0yREM+2DxyZPA0mf28FVt05CuGg@mail.gmail.com>
+From: Henri Sivonen <hsivonen@hsivonen.fi>
+To: Lars Wirzenius <liw@liw.fi>
+Content-Type: text/plain; charset=UTF-8
+X-Spam-Score: -2.1
+X-Spam-Score-int: -20
+X-Spam-Bar: --
+X-Scanned-By: pepperfish.net, Sun, 11 Oct 2015 11:21:14 +0100
+X-Spam-Report: Content analysis details: (-2.1 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ 0.5 PPF_RECEIVED_HTTP Received header mentions http
+ -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
+ trust [64.68.201.169 listed in list.dnswl.org]
+ -0.0 SPF_PASS SPF: sender matches SPF record
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+X-ACL-Warn: message may be spam
+X-Scan-Signature: 5488e4e8d8c10b4036f618d89ebffc9d
+Cc: Ben Boeckel <mathstuf@gmail.com>, obnam-dev@obnam.org
+Subject: Re: obnam should take an inhibitor lock during backup
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+On Sun, Oct 11, 2015 at 11:25 AM, Lars Wirzenius <liw@liw.fi> wrote:
+> On Fri, Sep 18, 2015 at 01:02:47AM -0400, Ben Boeckel wrote:
+>> During a backup, it would be nice to have obnam block suspending the
+>> machine. This can be done via logind's DBus API[1].
+>
+> To me, this sounds like it'd be more useful to have a generic command
+> to run a process and prevent the machine from suspending until the
+> process has ended. Something like:
+>
+> nosuspend [options] [--] command [options] [args]...
+>
+> Example:
+>
+> nosuspend obnam backup
+>
+> This way, there wouldn't be any need for suspend blocking code in
+> every command line utility.
+>
+> What do you think?
+
+I think the design should be made from the usability point of view
+instead of making it from code avoidance point of view.
+
+If there isn't significant enough a use case for letting the computer
+go to sleep during a backup, the user shouldn't have to take any
+action to inhibit sleep during backup. Also, even if there was a use
+case worth catering to for letting the computer go to sleep during
+backup but most of the time users expect the computer not to go to
+sleep during backup (I expect this to be the case), obnam should
+inhibit sleep by default and not inhibiting sleep should be an option
+the user could choose.
+
+--
+Henri Sivonen
+hsivonen@hsivonen.fi
+https://hsivonen.fi/
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999012.M515964P17339Q246.exolobe1 b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999012.M515964P17339Q246.exolobe1
new file mode 100644
index 0000000..4d380f1
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1455999012.M515964P17339Q246.exolobe1
@@ -0,0 +1,97 @@
+Return-Path: <obnam-dev-bounces@obnam.org>
+X-Original-To: distix@pieni.net
+Delivered-To: distix@pieni.net
+Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPS id 526C42D9C2
+ for <distix@pieni.net>; Sun, 11 Oct 2015 10:25:29 +0200 (CEST)
+Received: from platypus.pepperfish.net (unknown [10.112.100.20])
+ by bagpuss.pepperfish.net (Postfix) with ESMTP id BEAE02C4;
+ Sun, 11 Oct 2015 09:25:28 +0100 (BST)
+Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZlBwe-0004E4-Lc; Sun, 11 Oct 2015 09:25:28 +0100
+Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
+ by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
+ id 1ZlBwd-0004Dx-1M
+ for <obnam-dev@obnam.org>; Sun, 11 Oct 2015 09:25:27 +0100
+Received: from pieni.net ([95.142.166.37] ident=postfix)
+ by mx0.pepperfish.net with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
+ (Exim 4.80) (envelope-from <liw@liw.fi>) id 1ZlBwb-0005ZH-5p
+ for obnam-dev@obnam.org; Sun, 11 Oct 2015 09:25:26 +0100
+Received: from exolobe1.liw.fi (82-181-8-107.bb.dnainternet.fi [82.181.8.107])
+ (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+ (No client certificate requested)
+ by pieni.net (Postfix) with ESMTPSA id C4BF22D9C2;
+ Sun, 11 Oct 2015 10:25:17 +0200 (CEST)
+Received: from exolobe1.liw.fi (localhost [127.0.0.1])
+ by exolobe1.liw.fi (Postfix) with ESMTPS id 15E774084D;
+ Sun, 11 Oct 2015 11:25:17 +0300 (EEST)
+Date: Sun, 11 Oct 2015 11:25:16 +0300
+From: Lars Wirzenius <liw@liw.fi>
+To: Ben Boeckel <mathstuf@gmail.com>
+Message-ID: <20151011082515.GM2384@exolobe1.liw.fi>
+References: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=iso-8859-1
+Content-Disposition: inline
+Content-Transfer-Encoding: 8bit
+In-Reply-To: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
+User-Agent: Mutt/1.5.23 (2014-03-12)
+X-Spam-Score: -3.4
+X-Spam-Score-int: -33
+X-Spam-Bar: ---
+X-Scanned-By: pepperfish.net, Sun, 11 Oct 2015 09:25:26 +0100
+X-Spam-Report: Content analysis details: (-3.4 points)
+ pts rule name description
+ ---- ---------------------- --------------------------------------------------
+ -1.0 PPF_USER_AGENT_MUTT User-Agent: contains Mutt (Mutt isn't a spam
+ tool) -0.5 PPF_USER_AGENT User-Agent: exists
+ -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
+ [score: 0.0000]
+X-ACL-Warn: message may be spam
+X-Scan-Signature: e606bea56426b7460dd1a96e279d41e5
+Cc: obnam-dev@obnam.org
+Subject: Re: obnam should take an inhibitor lock during backup
+X-BeenThere: obnam-dev@obnam.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+List-Id: Obnam development discussions <obnam-dev-obnam.org>
+List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
+List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
+List-Post: <mailto:obnam-dev@obnam.org>
+List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
+List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
+ <mailto:obnam-dev-request@obnam.org?subject=subscribe>
+Sender: obnam-dev-bounces@obnam.org
+Errors-To: obnam-dev-bounces@obnam.org
+
+On Fri, Sep 18, 2015 at 01:02:47AM -0400, Ben Boeckel wrote:
+> During a backup, it would be nice to have obnam block suspending the
+> machine. This can be done via logind's DBus API[1].
+
+To me, this sounds like it'd be more useful to have a generic command
+to run a process and prevent the machine from suspending until the
+process has ended. Something like:
+
+ nosuspend [options] [--] command [options] [args]...
+
+Example:
+
+ nosuspend obnam backup
+
+This way, there wouldn't be any need for suspend blocking code in
+every command line utility.
+
+What do you think?
+
+--
+Schrödinger's backup hypothesis: the condition of any backup is
+undefined until a restore is attempted. -- andrewsh
+
+_______________________________________________
+obnam-dev mailing list
+obnam-dev@obnam.org
+http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/tmp/.this-dir-not-empty/.empty/empty-file b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/tmp/.this-dir-not-empty/.empty/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/tmp/.this-dir-not-empty/.empty/empty-file
diff --git a/tickets/20bdae3913de49d4afd544d36996ce4b/ticket.yaml b/tickets/20bdae3913de49d4afd544d36996ce4b/ticket.yaml
new file mode 100644
index 0000000..4a9b1fb
--- /dev/null
+++ b/tickets/20bdae3913de49d4afd544d36996ce4b/ticket.yaml
@@ -0,0 +1,4 @@
+ticket-id:
+- 20bdae3913de49d4afd544d36996ce4b
+title:
+- '[PATCH] backup: take an inhibitor lock if possible'