X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fsystemd-readahead-collect.service.in;h=55b6776649e7ebe995bcb83a0b5e47fa1ea71493;hb=63cb20a28b3f5e858a306daf7e0657ccbb0ab163;hp=c3fb2e6447e207b4d87c1061844d181d5e29b6b9;hpb=4bb2357f77c875976de5e238a5783e4e136b37b5;p=elogind.git diff --git a/units/systemd-readahead-collect.service.in b/units/systemd-readahead-collect.service.in index c3fb2e644..55b677664 100644 --- a/units/systemd-readahead-collect.service.in +++ b/units/systemd-readahead-collect.service.in @@ -1,21 +1,27 @@ # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. [Unit] Description=Collect Read-Ahead Data DefaultDependencies=no +Wants=systemd-readahead-done.timer Conflicts=shutdown.target -Before=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 RemainAfterExit=yes +StandardOutput=null +OOMScoreAdjust=1000 [Install] WantedBy=default.target -Also=systemd-readahead-replay.service +Also=systemd-readahead-drop.service