Skip to content

Commit

Permalink
Run service earlier at system startup
Browse files Browse the repository at this point in the history
some dirs may need to be linked earlier, also we want to precede systemd-tmpfiles-setup
  • Loading branch information
HanabishiRecca committed Nov 10, 2022
1 parent 78a0304 commit 8e7587e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion systemd/system/caches-manager.service
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions systemd/user/caches-manager.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[Unit]
Description=Caches manager: create user caches
DefaultDependencies=no
Before=systemd-tmpfiles-setup.service

[Service]
Type=oneshot
Expand Down

0 comments on commit 8e7587e

Please sign in to comment.