mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
units: add readahead unit files
This commit is contained in:
@@ -209,6 +209,8 @@ nodist_systemunit_DATA = \
|
||||
units/systemd-update-utmp-shutdown.service \
|
||||
units/systemd-random-seed-save.service \
|
||||
units/systemd-random-seed-load.service \
|
||||
units/systemd-readahead-collect.service \
|
||||
units/systemd-readahead-replay.service \
|
||||
units/syslog.target
|
||||
|
||||
dist_sessionunit_DATA = \
|
||||
@@ -236,6 +238,8 @@ EXTRA_DIST = \
|
||||
units/systemd-update-utmp-shutdown.service.in \
|
||||
units/systemd-random-seed-save.service.in \
|
||||
units/systemd-random-seed-load.service.in \
|
||||
units/systemd-readahead-collect.service.in \
|
||||
units/systemd-readahead-replay.service.in \
|
||||
units/syslog.target.in \
|
||||
units/session/exit.service.in \
|
||||
systemd.pc.in
|
||||
@@ -1149,4 +1153,3 @@ fedora: install
|
||||
rm /lib/systemd/system/local-fs.target.wants/var-run.mount
|
||||
rm /lib/systemd/system/local-fs.target.wants/var-lock.service
|
||||
rm /lib/systemd/system/local-fs.target.wants/var-lock.mount
|
||||
rm /lib/systemd/system/local-fs.target.wants/remount-rootfs.service
|
||||
|
||||
2
units/.gitignore
vendored
2
units/.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
systemd-readahead-collect.service
|
||||
systemd-readahead-replay.service
|
||||
serial-getty@.service
|
||||
systemd-kmsg-syslogd.service
|
||||
systemd-modules-load.service
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
Description=System Initialization
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
||||
Before=shutdown.target emergency.service emergency.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
Description=Remount Root FS
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service fsck.target
|
||||
Before=shutdown.target local-fs.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
Description=Apply Kernel Variables
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
Description=Load Kernel Modules
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -11,6 +11,7 @@ DefaultDependencies=no
|
||||
Wants=local-fs.target
|
||||
After=local-fs.target
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
|
||||
21
units/systemd-readahead-collect.service.in
Normal file
21
units/systemd-readahead-collect.service.in
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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
|
||||
# (at your option) any later version.
|
||||
|
||||
[Unit]
|
||||
Description=Collect Read-Ahead Data
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=@rootlibexecdir@/systemd-readahead-collect
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Also=systemd-readahead-replay.service
|
||||
21
units/systemd-readahead-replay.service.in
Normal file
21
units/systemd-readahead-replay.service.in
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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
|
||||
# (at your option) any later version.
|
||||
|
||||
[Unit]
|
||||
Description=Replay Read-Ahead Data
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=@rootlibexecdir@/systemd-readahead-replay
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Also=systemd-readahead-collect.service
|
||||
@@ -9,6 +9,7 @@
|
||||
Description=Remount API VFS
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
||||
Before=shutdown.target local-fs.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
Description=Setup Virtual Console
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
Description=Cleanup of Temporary Directories
|
||||
DefaultDependencies=no
|
||||
Wants=local-fs.target
|
||||
After=local-fs.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
|
||||
Before=poweroff.service reboot.service halt.service killall.service
|
||||
|
||||
[Service]
|
||||
|
||||
Reference in New Issue
Block a user