From d06e61996d71f1600ec0bd88453f0ef043b5ca2b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Feb 2023 10:51:33 +0100 Subject: systemctl: add --kill-value= argument to systemctl This allows accompanying a signal with a value (as supported for Linux Realtime signals). This is particularly useful as it allows us to do stuff like this: systemctl kill --kill-whom=main --kill-value=0x300 systemd-journald In order to ask journald to flush its allocation caches and compact memory. --- src/systemctl/systemctl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/systemctl/systemctl.h') diff --git a/src/systemctl/systemctl.h b/src/systemctl/systemctl.h index 9f9b8faa69..59da9e3ddb 100644 --- a/src/systemctl/systemctl.h +++ b/src/systemctl/systemctl.h @@ -77,6 +77,8 @@ extern UnitFilePresetMode arg_preset_mode; extern char **arg_wall; extern const char *arg_kill_whom; extern int arg_signal; +extern int arg_kill_value; +extern bool arg_kill_value_set; extern char *arg_root; extern usec_t arg_when; extern const char *arg_reboot_argument; -- cgit v1.2.1