chiark / gitweb /
update TODO
[elogind.git] / units / systemd-readahead-collect.service.in
index c5e1d5274f84c2d3b760aadb183a1479a2c836b8..55b6776649e7ebe995bcb83a0b5e47fa1ea71493 100644 (file)
@@ -11,6 +11,8 @@ DefaultDependencies=no
 Wants=systemd-readahead-done.timer
 Conflicts=shutdown.target
 Before=sysinit.target shutdown.target
+ConditionPathExists=!/run/systemd/readahead/cancel
+ConditionPathExists=!/run/systemd/readahead/done
 ConditionVirtualization=no
 
 [Service]
@@ -18,6 +20,8 @@ Type=notify
 ExecStart=@rootlibexecdir@/systemd-readahead-collect
 RemainAfterExit=yes
 StandardOutput=null
+OOMScoreAdjust=1000
 
 [Install]
 WantedBy=default.target
+Also=systemd-readahead-drop.service