mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
This adds a new --lightweight=yes/no switch which allows controlling whether the invoked service will have the service manager around or not. Moreover, this changes that if the target user is root it will now support to the lightweight mode, i.e. run0 towards root will no longer pull in the service manager (a real tty login via getty still will though!). My thinking here is that quickly raising privileges via run0 probably shouldn't be considered a proper login but just something short lived, temporary for a single command or similar.
13 lines
453 B
C
13 lines
453 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "sd-json.h"
|
|
|
|
int parse_boolean_argument(const char *optname, const char *s, bool *ret);
|
|
int parse_tristate_argument(const char *optname, const char *s, int *ret);
|
|
int parse_json_argument(const char *s, sd_json_format_flags_t *ret);
|
|
int parse_path_argument(const char *path, bool suppress_root, char **arg);
|
|
int parse_signal_argument(const char *s, int *ret);
|