From fd3013fb35ebf6bd71ec914b011affd238b3d7c5 Mon Sep 17 00:00:00 2001 From: Jonas Kalderstam Date: Sat, 19 Aug 2017 12:02:24 +0200 Subject: [PATCH] Make sure btrbk service only runs after network is available As specified at https://www.freedesktop.org/software/systemd/man/systemd.timer.html#Persistent= the service will be activated immediately on machine boot if it would have been triggered when the machine was turned off. This makes it possible for the service to be activated before remote hosts are available. Adding the `After` directive should make sure that it is only triggered after remote hosts are reachable. --- contrib/systemd/btrbk.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/btrbk.service.in b/contrib/systemd/btrbk.service.in index bc8b769..38ee251 100644 --- a/contrib/systemd/btrbk.service.in +++ b/contrib/systemd/btrbk.service.in @@ -1,5 +1,6 @@ [Unit] Description=btrbk backup +After=network.target [Service] Type=oneshot