<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 01/04/2017 04:36 PM, Mantas Mikulėnas wrote:<br>
<blockquote
cite="mid:CAPWNY8WiHnMGZHFf4nQmOeZXOZ0gA40hwJUdgo-5X+2aTpqinw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">systemd.unit documents
ConditionHost=, which can match either by hostname or by
machine-id for exactly this situation.
<div><br>
</div>
<div>There is also the (slightly horrible)
ConditionPathExists=/var/lib/systemd/linger/%u.</div>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
Thanks! Can't believe I missed that in my searching.
ConditionHost= meets my needs and seems cleaner, although that is a
nice suggestion about ConditionPathExists, since it avoids the need
to hard-code a hostname in the service file.<br>
<br>
-Mike<br>
</body>
</html>