On 01/04/2017 04:36 PM, Mantas Mikulėnas wrote:
systemd.unit documents ConditionHost=, which can match either by
hostname or by machine-id for exactly this situation.
There is also the (slightly horrible)
ConditionPathExists=/var/lib/systemd/linger/%u.
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.
-Mike
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel