]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: journal-upload Wants= and After=network-online.target (#4354)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2016 09:13:13 +0000 (18:13 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Oct 2016 09:13:13 +0000 (11:13 +0200)
To upload journal entries to a remote server, it is required that
the network is online.

units/systemd-journal-upload.service.in

index c709543af540cdf7eda57b5ff2ba1e8caa6850da..d8fd24362029c98b8990fac527b2ab0fcfa3cec3 100644 (file)
@@ -8,7 +8,8 @@
 [Unit]
 Description=Journal Remote Upload Service
 Documentation=man:systemd-journal-upload(8)
-After=network.target
+Wants=network-online.target
+After=network-online.target
 
 [Service]
 ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state