diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2020-05-08 00:26:53 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-05-30 16:50:05 +0200 |
commit | d904afc730268d50502f764dfd55b8cf4906c46f (patch) | |
tree | ab7d37d0c0f67abe055e0f30d7f348c2f5ea9efa /src/shared/unit-file.c | |
parent | Merge pull request #15935 from poettering/cache-more-efi-vars (diff) | |
download | systemd-d904afc730268d50502f764dfd55b8cf4906c46f.tar.xz systemd-d904afc730268d50502f764dfd55b8cf4906c46f.zip |
core: reload cache if it's dirty when starting a UNIT_NOT_FOUND unit
The time-based cache allows starting a new unit without an expensive
daemon-reload, unless there was already a reference to it because of
a dependency or ordering from another unit.
If the cache is out of date, check again if we can load the
fragment.
Diffstat (limited to 'src/shared/unit-file.c')
-rw-r--r-- | src/shared/unit-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/unit-file.c b/src/shared/unit-file.c index 10968e18ca..ed4affd668 100644 --- a/src/shared/unit-file.c +++ b/src/shared/unit-file.c @@ -199,7 +199,7 @@ static bool lookup_paths_mtime_exclude(const LookupPaths *lp, const char *path) streq_ptr(path, lp->runtime_control); } -static bool lookup_paths_mtime_good(const LookupPaths *lp, usec_t mtime) { +bool lookup_paths_mtime_good(const LookupPaths *lp, usec_t mtime) { char **dir; STRV_FOREACH(dir, (char**) lp->search_path) { |