[Unit] Description=Disallow dropping I/O caches DefaultDependencies=off Conflicts=shutdown.target After=systemd-modules-load.service systemd-sysctl.service sysctl.service Before=shutdown.target ConditionPathExists=/proc/sys/vm/drop_caches [Service] Type=oneshot ExecStart=/bin/sh -c "mkfifo /run/$$$$ && trap 'rm -f /run/$$$$' EXIT && mount --bind /run/$$$$ /proc/sys/vm/drop_caches" TimeoutSec=10s RemainAfterExit=on [Install] WantedBy=sysinit.target