diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-03-29 22:10:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-04-13 06:44:27 +0200 |
commit | 4fb8f1e88322b94b0fa051d3c6fd19cac0227aaa (patch) | |
tree | 25abb04a9f420f533a85a8548d21103f165708b2 /src/systemctl | |
parent | b9c1883a9cd9b5126fe648f3e198143dc19a222d (diff) | |
download | systemd-4fb8f1e88322b94b0fa051d3c6fd19cac0227aaa.tar.gz |
service: allow freeing the fdstore via cleaning
Now that we have a potentially pinned fdstore let's add a concept for
cleaning it explicitly on user requested. Let's expose this via
"systemctl clean", i.e. the same way as user directories are cleaned.
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-clean-or-freeze.c | 2 | ||||
-rw-r--r-- | src/systemctl/systemctl.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-clean-or-freeze.c b/src/systemctl/systemctl-clean-or-freeze.c index 5c15a9fba0..40d5f6d557 100644 --- a/src/systemctl/systemctl-clean-or-freeze.c +++ b/src/systemctl/systemctl-clean-or-freeze.c @@ -21,7 +21,7 @@ int verb_clean_or_freeze(int argc, char *argv[], void *userdata) { polkit_agent_open_maybe(); if (!arg_clean_what) { - arg_clean_what = strv_new("cache", "runtime"); + arg_clean_what = strv_new("cache", "runtime", "fdstore"); if (!arg_clean_what) return log_oom(); } diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index df4cf68435..21e09536a6 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -937,7 +937,8 @@ static int systemctl_parse_argv(int argc, char *argv[]) { "state\n" "cache\n" "logs\n" - "configuration"); + "configuration\n" + "fdstore"); return 0; } |