chiark / gitweb /
man: add Documentation= tags to all kinds of missing units
[elogind.git] / units / systemd-readahead-collect.service.in
index 887339c3f315155896ff9e2b8438d4a437293c01..d4b8e67932d47e413ecfa7354293ef285f082192 100644 (file)
@@ -7,18 +7,22 @@
 
 [Unit]
 Description=Collect Read-Ahead Data
+Documentation=man:systemd-readahead-replay.service(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]
 Type=notify
-ExecStart=@rootlibexecdir@/systemd-readahead-collect
+ExecStart=@rootlibexecdir@/systemd-readahead collect
 RemainAfterExit=yes
 StandardOutput=null
 OOMScoreAdjust=1000
 
 [Install]
 WantedBy=default.target
+Also=systemd-readahead-drop.service