<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Easier management of mount targets as dependencies of services"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87323">87323</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Easier management of mount targets as dependencies of services
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stephen@redhat.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Let's say I have a service target called 'pulp_celerybeat' that requires some
content from the /var/lib/pulp directory in order to start.
This directory contains RPM content (and quite a lot of it), so users may want
to move this to a network share.
When I do, this service no longer starts because it can happen that
/var/lib/pulp isn't mounted.
I've fixed this by creating:
/etc/systemd/system/pulp_celerybeat.service.d/amendments.conf
With:
[Unit]
RequireMountsFor=/var/lib/pulp
Easy enough.
But systemd knows about all the mount targets. It also knows that
pulp_celerybeat uses /var/lib/pulp by this in the unit file:
[Service]
WorkingDirectory=/var/lib/pulp/celery/
Would it be possible to do this dependency management automatically?
Alternatively, supporting some directive like "RequiresDir" that we could ship
in the packaged unit files would be useful, so if a user does move our storage
to a network share, systemd would set the right mount dependencies
automatically.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>