From 8e7587e35b150e5bc51bb5d8f18759d500a7d1f5 Mon Sep 17 00:00:00 2001 From: Hanabishi <13597663+HanabishiRecca@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:59:03 +0500 Subject: [PATCH] Run service earlier at system startup some dirs may need to be linked earlier, also we want to precede systemd-tmpfiles-setup --- systemd/system/caches-manager.service | 5 ++++- systemd/user/caches-manager.service | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/systemd/system/caches-manager.service b/systemd/system/caches-manager.service index 4387b2f..f722479 100644 --- a/systemd/system/caches-manager.service +++ b/systemd/system/caches-manager.service @@ -1,9 +1,12 @@ [Unit] Description=Caches manager: create system caches +DefaultDependencies=no +After=local-fs.target +Before=systemd-tmpfiles-setup.service [Service] Type=oneshot ExecStart=caches-manager --system [Install] -WantedBy=basic.target +WantedBy=sysinit.target diff --git a/systemd/user/caches-manager.service b/systemd/user/caches-manager.service index c785794..86862bd 100644 --- a/systemd/user/caches-manager.service +++ b/systemd/user/caches-manager.service @@ -1,5 +1,7 @@ [Unit] Description=Caches manager: create user caches +DefaultDependencies=no +Before=systemd-tmpfiles-setup.service [Service] Type=oneshot