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.
pull/175/head
Jonas Kalderstam 2017-08-19 12:02:24 +02:00
parent a9f1b6b24a
commit fd3013fb35
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
[Unit]
Description=btrbk backup
After=network.target
[Service]
Type=oneshot