chiark / gitweb /
journal: bump RLIMIT_NOFILE when journal files to 16K (if possible)
[elogind.git] / units / systemd-journal-upload.service.in
index e79f96204394e90aec19aafea3ac513231595650..b2e3c769cce8db0fa333ec5ee5079f2b755eb94b 100644 (file)
@@ -7,6 +7,7 @@
 
 [Unit]
 Description=Journal Remote Upload Service
+After=network.target
 
 [Service]
 ExecStart=@rootlibexecdir@/systemd-journal-upload \
@@ -16,6 +17,9 @@ PrivateTmp=yes
 PrivateDevices=yes
 WatchdogSec=20min
 
+# If there are many split up journal files we need a lot of fds to
+# access them all and combine
+LimitNOFILE=16384
+
 [Install]
 WantedBy=multi-user.target
-After=network.target