From c86a95082b032fc6a0ff83b732f70ff53e45e4b6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Jul 2023 14:36:14 +0200 Subject: systemctl: implement a new "whoami" verb, that just returns unit of caller/PID --- src/systemctl/systemctl-whoami.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/systemctl/systemctl-whoami.h (limited to 'src/systemctl/systemctl-whoami.h') diff --git a/src/systemctl/systemctl-whoami.h b/src/systemctl/systemctl-whoami.h new file mode 100644 index 0000000000..abdd13b34f --- /dev/null +++ b/src/systemctl/systemctl-whoami.h @@ -0,0 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +int verb_whoami(int argc, char *argv[], void *userdata); -- cgit v1.2.3