<p>To complete the compliance to the XDG standard (see <a href="https://github.com/OfflineIMAP/offlineimap/issues/32" class="issue-link" title="OfflineIMAP does not follow XDG Base Spec">#32</a>), the pidfile should be created in <code>$XDG_RUNTIME_DIR</code> instead of the (admittedly configurable) metadata dir.</p>
<p>But more importantly, the pidfile is bound one to one with the metadata dir, but there can be multiple instances of offlineimap per metadata dir (e.g. with different value for the <code>-a</code> argument) overwriting their own pidfiles and just changing the location to <code>$XDG_RUNTIME_DIR</code> will not help. This leads to a question whether the pidfile is necessary/useful at all. IMHO they are traditionally used by daemon managers to keep track of processes, for which they need to be able to set custom pidfile path per-instance.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/229">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEM5-uQUksmW_oJw1CuGtpYpYoSGBks5op2DmgaJpZM4FwEAl.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/229"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>